广播模块
API
DataStructure
ESIntentFilter
IntentFilter
Name | Description | Type | Default |
---|---|---|---|
action | action | Array<string> | - |
scheme | scheme | Array<string> | - |
category | category | Array<string> | - |
type | type | Array<string> | - |
authority | authority | Array<ESIntentDataAuthority> | - |
path | path | Array<ESIntentDataPath> | - |
schemeSpecificPart | schemeSpecificPart | Array<ESIntentDataSchemeSpecificPart> | - |
ESIntentDataAuthority
ESIntentDataAuthority
Name | Description | Type | Default |
---|---|---|---|
host | host | string | - |
port | port | string | - |
ESIntentDataPath
ESIntentDataPath
Name | Description | Type | Default |
---|---|---|---|
path | path | string | - |
type | type | number | - |
ESIntentDataSchemeSpecificPart
ESIntentDataSchemeSpecificPart
Name | Description | Type | Default |
---|---|---|---|
ssp | ssp | string | - |
type | type | number | - |
Exposes
Name | Description | Type |
---|---|---|
registerReceiver | 该方法注册广告接收者 | Function |
unregisterReceiver | 该方法取消注册广告接收者 | Function |
sendBroadcast | 该方法发送广播 | Function |