setAppsFlyerId static method

Future<BaseResponse> setAppsFlyerId(
  1. String appsFlyerId
)

Modifies AppsFlyer identification. If users of Appmate has integration of the AppsFlyer, they can set the AppsFlyerId value via this method

  • Parameters:
    • appsFlyerId: the identification of the AppsFlyer app configuration

Implementation

static Future<BaseResponse> setAppsFlyerId(String appsFlyerId) async {
  List<Object?>? response = await _channel
      .invokeMethod('setAppsFlyerId', {"appsFlyerId": appsFlyerId});
  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;
}