mstOnServiceChangeBegin
Start from API_LEVEL
3.0. Please refer to API_LEVEL.
Register the Service start change callback function.
Type
function mstOnServiceChangeBegin(callback: Callback): Result
Parameters
Callback
| Type | Description |
|---|---|
(profile: Profile) => void | Service start change callback function |
Profile
| Type | Description |
|---|---|
number | Profile pointer |
Result
| Type | Description |
|---|---|
boolean | The result of the function call, true means success, false means failure |
Example
import { mstOnServiceChangeBegin } from '@zos/ble'
// ...