Added in API level 32

VoiceInteractionSession.VisibleActivityCallback


public static interface VoiceInteractionSession.VisibleActivityCallback

android.service.voice.VoiceInteractionSession.VisibleActivityCallback


Callback interface for receiving visible activity changes used for assistant usage.

Summary

Public methods

default void onInvisible(VoiceInteractionSession.ActivityId activityId)

Callback to inform that a visible activity has gone.

default void onVisible(VisibleActivityInfo activityInfo)

Callback to inform that an activity has become visible.

Public methods

onInvisible

Added in API level 32
public void onInvisible (VoiceInteractionSession.ActivityId activityId)

Callback to inform that a visible activity has gone.

Parameters
activityId VoiceInteractionSession.ActivityId: This value cannot be null.

onVisible

Added in API level 32
public void onVisible (VisibleActivityInfo activityInfo)

Callback to inform that an activity has become visible.

Parameters
activityInfo VisibleActivityInfo: This value cannot be null.