Listener

interface Listener

This interface is used by the System Capability agent

Functions

Link copied to clipboard
abstract fun onException(code: SystemAgentInterface.ExceptionCode, description: String?)

Called on receive exception.

Link copied to clipboard
abstract fun onRevoke(reason: SystemAgentInterface.RevokeReason)

The device has been revoked.

Link copied to clipboard
abstract fun onTurnOff()

After receiving an event, turn off immediately.