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 ISerialServer

interface ISerialServer
Extends com.amazon.apmf.IStandard

Methods

acceptConnection()

void acceptConnection(IDevice* device, ISerialConnectionListener* listener)
Accept a connection request from a device. The connection request is a callback from the listener (see [ISerialServerListener]). See description in onConnectionRequest for the sequence of events. Privilege: com.amazon.bluetooth.privilege.serial

Parameters

device
IDevice* — Required The device to accept the connection to.
listener
ISerialConnectionListener* — Required Callback for receiving connection event related to this server, see [ISerialConnectionListener]. The listener monitors the connection event (connection state, congestion state, data received).

rejectConnection()

void rejectConnection(IDevice* device)
Reject a connection request from a device. The connection request is a callback from the listener (see [ISerialServerListener]). See description in onConnectionRequest for the sequence of events. Privilege: com.amazon.bluetooth.privilege.serial

Parameters

device
IDevice* — Required The device to reject the connection from.
Last modified on October 29, 2026