Call setChannel to set the channel name
- This plugin is for developers to identify channels by setting channel names by themselves.
- It is recommended to call setChannel before initializing the SDK. This allows all reported events to be tagged with the specified channel name.
- If developers do not pass a channel name or pass null, the SDK will automatically collect the channel name, which may result in a null value.
- This method only applies to the Android system.
Function
export function setChannel(channel:string);
Parameter | Parameter Meaning | Parameter Type | Required |
---|
channel | channel name | String | Yes |
Sample Code
let channel:string = "your apk/ipa channel name"
SolarEngine.setChannel(channel);