|
|
2 лет назад | |
|---|---|---|
| .. | ||
| src | 3 лет назад | |
| .gitignore | 3 лет назад | |
| README.md | 2 лет назад | |
The tv-app common-api module defines the interface to interact with the Matter agent service for the content apps. This module defines the AIDL interfaces, clusters and command abstractions accessible. It also defines various constants and intent field definitions that would be used by the content app while interacting with the Matter SDK. The interface provided by this module helps content app to register dynamic endpoints as well as report any attribute changes to the SDK.
To utilize the Matter agent interface the partner apps need to
com.matter.tv.app.api.action.MatterAppAgent actioncom.matter.tv.app.api.permission.SEND_DATA permissioncom.matter.tv.app.api.permission.BIND_SERVICE_PERMISSION permissionThe Matter app agent service exposes the following interface
setSupportedClusters
reportAttributeChange
The common API package defines commonly used cluster IDs as well as
corresponding Attribute ID's through com.matter.tv.app.api.Clusters. The
common-api provides a quick way to refer to different clusters defined by the
Matter spec relevant for media casting, as well as attributes and commands
associated with each one.
The supported intents are defined under the
com.matter.tv.app.api.MatterIntentConstants. This helper class defines the
relevant intents used while interacting with the Matter app agent service. This
includes the android permission strings to as well as command and attribute
intent fields to be used.