Menu

Set Channel

Overview

  1. This plugin is for developers to identify channels by setting channel names by themselves.
  2. 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.
  3. 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)
ParameterDescriptionTypeRequired
channelchannel nameStringYes

Sample Code

 SolarEngine.Analytics.setChannel("xiaomi");

Note:

       This method only applies to Android system.


Previous
Set GAID
Next
Set Public Event Properties
Last modified: 2024-12-04Powered by