IntentListener

Listener for intent sending. Generated by addIntentListener.

Hierarchy

  • IntentListener

Index

Properties

handler

handler: function

The handler for when this listener receives an intent.

Type declaration

    • (context: Context): unknown | Promise<unknown>
    • Parameters

      Returns unknown | Promise<unknown>

intent

intent: string

The intent name that we are listening to. Is whatever is passed into addIntentListener.

unsubscribe

unsubscribe: function

Unsubscribe the listener object. We will no longer receive intent messages on this handler.

Calling this method has no effect if the listener has already been unsubscribed. To re-subscribe, call addIntentListener again to create a new listener object.

Type declaration

    • (): void
    • Returns void