- This interface is for developers to identify channels by setting channel names by themselves.
- It is recommended to call the setChannel interface 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 a null channel name, the SDK will automatically collect the channel name, which may result in a null value.
Parameter Name | Parameter Meaning | Parameter Type | Mandatory |
---|
channel | channel name | String | Yes |
Call example:
solarengine.setChannel("Google");