setAdvertiseId static method
set the Identifier for Advertisers assigned by Apple to a user’s device. If users of Appmate has integration of the AppsFlyer, they can set the AppsFlyerId value via this method.
- Parameters:
- ADID: the Identifier for Advertisers.
Implementation
static Future<BaseResponse> setAdvertiseId(String ADID) async {
List<Object?>? response =
await _channel.invokeMethod('setAdvertiseId', {"ADID": ADID});
BaseResponse result = new BaseResponse(false, null);
if (response != null) {
if (response[0] != null) {
result = new BaseResponse(response[0].toString() == "true", null);
}
if (response[1] != null) {
GenericError error =
GenericError.fromJson(json.decode(response[1]!.toString()));
result = new BaseResponse(false, error);
}
return result;
}
return result;
}