Overview
- This plugin is for developers to identify channels by setting channel names by themselves.
- It is recommended to call the setChannel plugin 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.
Call setChannel to set channel name:
Function
public static void setChannel(string channel)
Parameter | Description | Type | Required |
---|
channel | channel name | String | Yes |
Sample Code
SolarEngine.Analytics.setChannel("xiaomi");
Note:
This method only applies to Android system.