takeOff static method

Future<bool> takeOff(
  1. AirshipConfig config
)

Initializes Airship with the given config. Airship will store the config and automatically use it during the next app init. Any chances to config could take an extra app init to apply.

Returns true if Airship has been initialized, otherwise returns false.

Implementation

static Future<bool> takeOff(AirshipConfig config) async {
  return await _module.channel.invokeMethod('takeOff', config.toJson());
}