Added in API level 32

VisibleActivityCallback


interface VisibleActivityCallback
android.service.voice.VoiceInteractionSession.VisibleActivityCallback

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

Summary

Public methods
open Unit

Callback to inform that a visible activity has gone.

open Unit

Callback to inform that an activity has become visible.

Public methods

onInvisible

Added in API level 32
open fun onInvisible(activityId: VoiceInteractionSession.ActivityId): Unit

Callback to inform that a visible activity has gone.

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

onVisible

Added in API level 32
open fun onVisible(activityInfo: VisibleActivityInfo): Unit

Callback to inform that an activity has become visible.

Parameters
activityInfo VisibleActivityInfo: This value cannot be null.