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

TopicBuilder

open class TopicBuilder

Build a new Topic

Functions

build

Create the Topic instance using configured values

open fun build(): Topic!

buildAsync

Create the Topic instance using configured values

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

with

Create a new topic builder

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

withAsset

Set a topic content from asset

open fun withAsset(assetName: String!): TopicBuilder!

withResource

Set a topic content from resource file

open fun withResource(resId: Int!): TopicBuilder!

withText

Set a topic content from text

open fun withText(text: String!): TopicBuilder!