requireImportantForInteraction
()
|
Kotlin convenience for Context.requireImportantForInteraction using this view's context.
Java callers use GazeViewCompat.requireImportantForInteraction(view.getContext()).
Signature
inline fun View.requireImportantForInteraction() Extension declared in metavrx.gaze.view |
requireTooltipVisibility
()
|
Kotlin convenience for Context.requireTooltipVisibility using this view's context.
Java callers use GazeViewCompat.requireTooltipVisibility(view.getContext()).
Signature
inline fun View.requireTooltipVisibility() Extension declared in metavrx.gaze.view |
setImportantForInteraction
(
flags
)
|
Configures how this view participates in Gaze interaction.
flags is a bitmask with these values:
These values do not change the view's Android click or touch behavior. Descendants excluded from Gaze targeting also remain clickable.
This function safely does nothing when the capability is unavailable, so callers only need a support check when they want to provide fallback behavior.
Kotlin:
view.setImportantForInteraction(IMPORTANT_FOR_INTERACTION_NO)
Java:
GazeViewCompat.setImportantForInteraction(
view, GazeViewCompat.IMPORTANT_FOR_INTERACTION_NO);
Signature
fun View.setImportantForInteraction(flags: Int) Extension declared in metavrx.gaze.viewParameters flags: Int
the interaction behavior to apply, using the constants described above.
|
setTooltipVisibility
(
flags
)
|
Configures when and where the system displays this view's tooltip for Gaze.
Set the tooltip content with View.setTooltipText before calling this function. The view must also be considered an interaction target; this function does not make it one.
flags is a bitmask with these values:
Combine the enable bit with the suppression bit when appropriate and at most one position value. Omit the position value for automatic placement.
Kotlin:
icon.tooltipText = "Settings"
icon.setTooltipVisibility(
TOOLTIP_VISIBILITY_GAZE_ENABLED or TOOLTIP_VISIBILITY_POSITION_BOTTOM,
)
Java:
icon.setTooltipText("Settings");
GazeViewCompat.setTooltipVisibility(
icon,
GazeViewCompat.TOOLTIP_VISIBILITY_GAZE_ENABLED
| GazeViewCompat.TOOLTIP_VISIBILITY_POSITION_BOTTOM);
This function safely does nothing when the capability is unavailable, so callers only need a support check when they want to provide fallback behavior.
Signature
fun View.setTooltipVisibility(flags: Int) Extension declared in metavrx.gaze.viewParameters flags: Int
the tooltip behavior to apply, using the constants described above.
|
supportsImportantForInteraction
()
|
Kotlin convenience for Context.supportsImportantForInteraction using this view's context.
Java callers use GazeViewCompat.supportsImportantForInteraction(view.getContext()).
Signature
inline fun View.supportsImportantForInteraction(): Boolean Extension declared in metavrx.gaze.viewReturns Boolean |
supportsTooltipVisibility
()
|
Kotlin convenience for Context.supportsTooltipVisibility using this view's context.
Java callers use GazeViewCompat.supportsTooltipVisibility(view.getContext()).
Signature
inline fun View.supportsTooltipVisibility(): Boolean Extension declared in metavrx.gaze.viewReturns Boolean |