qisdk / com.aldebaran.qi.sdk.object.focus / Focus / take

take

abstract fun take(): FocusOwner!

Take the focus. It may fail if the robot is busy and focused on something else, for example in an interactive activity or in safeguard.

Return
FocusOwner!: A handle owning the focus.

Since
1

abstract fun take(token: String!): FocusOwner!

Take the focus from the given token. If the token matched the one of the current focus, the ownership is transmitted to the taker. Any user having the FocusOwner would be released. Otherwise, it behaves like takeFocus.

Parameters

token - String!: The token authenticating the focus ownership.

Return
FocusOwner!: A handle owning the focus.

Since
1