qisdk / com.aldebaran.qi.sdk.builder / PhraseSetBuilder

PhraseSetBuilder

open class PhraseSetBuilder

Build a new PhraseSet

Functions

build

Create the PhraseSet instance using configured values

open fun build(): PhraseSet!

buildAsync

Create the PhraseSet instance using configured values

open fun buildAsync(): Future<PhraseSet!>!

with

Create a new builder from the qiContext

open static fun with(context: QiContext!): PhraseSetBuilder!

withPhrases

Add phrases from string resources

open fun withPhrases(vararg phrases: Phrase!): PhraseSetBuilder!
open fun withPhrases(phrases: MutableList<Phrase!>!): PhraseSetBuilder!

withResources

Add phrases from string resources

open fun withResources(vararg resIds: Int!): PhraseSetBuilder!

withTexts

Add phrases from texts

open fun withTexts(vararg texts: String!): PhraseSetBuilder!