Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ILocalDeviceState

interface ILocalDeviceState
Extends com.amazon.apmf.IStandard Interface that provides device state for the local device.

Methods

getLocalDeviceState()

LocalDeviceState getLocalDeviceState()
Read device state for the local device.

Returns

LocalDeviceState current device state for the local device.

addLocalDeviceStateListener()

com.amazon.apmf.ISubscription* addLocalDeviceStateListener(ILocalDeviceStateListener* listener)
Add listener for local device state changed.

Parameters

listener
ILocalDeviceStateListener* — Required ILocalDeviceStateListener for local device state changed.

Returns

com.amazon.apmf.ISubscription* ISubscription object. Use this object: this->unsubcribe to remove listener.
Last modified on October 29, 2026