SolarEngine China Mainland version SDK will automatically obtain OAID, so developers do not need to set it manually. If developers need to retrieve the OAID themselves, they can call an API to set OAID manually. The SDK will prioritize the value provided by the developer and will not modify or delete it until the next value is provided. If set multiple times, the last provided value will be saved.
Function
public void setOaid(String oaid);
Parameter | Description | Type | Required |
---|---|---|---|
oaid | OAID of the device | String | No |
Sample Code
GetOaidManager.getInstance().setOaid("oaid");
Note:
If developers have configured isGDPRArea(true) during the SDK initialization, this method cannot be called successfully.