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 IMessageClient

interface IMessageClient
Extends com.amazon.apmf.IStandard Message client.

Methods

getMessageRepositories()

IMessageRepository*[] getMessageRepositories(IDevice* device)
Discover message repositories on the remote device. A remote device might provide one or more message repositories, which are generally divided based on the email accounts in the case of email, or by subscriber number in the case of SMS/MMS. This is a blocking call until the list of message repositories (MAS instances) are received from the remote device. Privilege: com.amazon.bluetooth.privilege.access

Parameters

device
IDevice* — Required The remote IDevice to retrieve message repositories.

Returns

IMessageRepository*[] Returns an array of IMessageRepository interface.

Throws


getConnectedDevices()

IDevice*[] getConnectedDevices()
Get devices that are currently connected with message client. Remote devices with connection to at least one message repository are returned. Privilege: com.amazon.bluetooth.privilege.access

Returns

IDevice*[] Returns an array of pointer to IDevice.

Throws


addListener()

com.amazon.apmf.ISubscription* addListener(IMessageClientListener* listener)
Add a listener for message client events. Privilege: com.amazon.bluetooth.privilege.access

Parameters

listener
IMessageClientListener* — Required IMessageClientListener.

Returns

com.amazon.apmf.ISubscription* Returns a pointer to ISubscription.

Throws


Last modified on October 29, 2026