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 IMessageFilterSubscription

interface IMessageFilterSubscription
Extends com.amazon.apmf.ISubscription A subscription handle for registered message filters. Calling unsubscribeFilters() to remove every registered filter does NOT dispose this subscription; the listener remains attached. To fully release the subscription and detach the listener, callers must invoke unsubscribe() (inherited from ISubscription). The subscription is reference-counted via IStandard, but dropping all Ptr<> references does NOT automatically unsubscribe; the logical subscription persists until unsubscribe() is called or the event source is destroyed.

Methods

unsubscribeFilters()

void unsubscribeFilters(IMessageFilter*[] messageFilters)
Removes specific filters from this subscription. Filters that do not match any existing registration are ignored.

Parameters

messageFilters
IMessageFilter*[] — Required The list of Message Filters to remove.

Throws


Last modified on October 29, 2026