requireImportantForInteraction
()
|
Verifies that this device supports configuring how a View participates in Gaze interaction.
Most callers do not need this guard because View.setImportantForInteraction safely does nothing when unsupported. Use it when continuing without the API would be an application error.
Kotlin:
context.requireImportantForInteraction()
Java:
GazeViewCompat.requireImportantForInteraction(context);
Signature
fun Context.requireImportantForInteraction() Extension declared in metavrx.gaze.viewThrows UnsupportedOperationException
if importance for Gaze interaction cannot be configured on this device.
|
requireTooltipVisibility
()
|
Verifies that this device supports configuring gaze-triggered tooltip visibility on a View.
Most callers do not need this guard because View.setTooltipVisibility safely does nothing when unsupported. Use it when continuing without the API would be an application error.
Kotlin:
context.requireTooltipVisibility()
Java:
GazeViewCompat.requireTooltipVisibility(context);
Signature
fun Context.requireTooltipVisibility() Extension declared in metavrx.gaze.viewThrows UnsupportedOperationException
if gaze-triggered tooltip visibility cannot be configured on this device.
|
supportsImportantForInteraction
()
|
Returns whether this device supports configuring how a View participates in Gaze interaction.
Most callers can invoke View.setImportantForInteraction directly because it safely does nothing when unsupported. Use this query when the app needs to provide alternate behavior.
Kotlin:
if (context.supportsImportantForInteraction()) {
// ...
}
Java:
if (GazeViewCompat.supportsImportantForInteraction(context)) {
// ...
}
Signature
fun Context.supportsImportantForInteraction(): Boolean Extension declared in metavrx.gaze.viewReturns Boolean true when importance for Gaze interaction can be configured on this device.
|
supportsTooltipVisibility
()
|
Returns whether this device supports configuring gaze-triggered tooltip visibility on a View.
Most callers can invoke View.setTooltipVisibility directly because it safely does nothing when unsupported. Use this query when the app needs to provide an alternate tooltip experience.
Kotlin:
if (context.supportsTooltipVisibility()) {
// ...
}
Java:
if (GazeViewCompat.supportsTooltipVisibility(context)) {
// ...
}
Signature
fun Context.supportsTooltipVisibility(): Boolean Extension declared in metavrx.gaze.viewReturns Boolean true when gaze-triggered tooltip visibility can be configured on this device.
|