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

take

abstract fun take(): Future<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
Future<FocusOwner!>!: A handle owning the focus.

Since
1

abstract fun take(token: String!): Future<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
Future<FocusOwner!>!: A handle owning the focus.

Since
1