initialize method

  1. @override
Future<bool?> initialize({
  1. String? appId,
  2. String? accessToken,
  3. String? mid,
  4. String? sfmcURL,
  5. String? senderId,
  6. bool? locationEnabled,
  7. bool? inboxEnabled,
  8. bool? analyticsEnabled,
  9. bool? delayRegistration,
})
override

To Initialize the SDK

Implementation

@override
Future<bool?> initialize(
    {String? appId,
    String? accessToken,
    String? mid,
    String? sfmcURL,
    String? senderId,
    bool? locationEnabled,
    bool? inboxEnabled,
    bool? analyticsEnabled,
    bool? delayRegistration}) async {
  final bool? result = await methodChannel.invokeMethod('initialize', {
    "appId": appId,
    "accessToken": accessToken,
    "mid": mid,
    "sfmcURL": sfmcURL,
    "senderId": senderId,
    "locationEnabled": locationEnabled,
    "inboxEnabled": inboxEnabled,
    "analyticsEnabled": analyticsEnabled,
    "delayRegistration": delayRegistration,
  });
  return result;
}