reloadExtension static method

Future<void> reloadExtension(
  1. String extensionIdentifier
)

Reloads the extension with the specified identifier.

Possible errors listed in the FCXCallKitCallDirectoryManagerError.

Implementation

static Future<void> reloadExtension(String extensionIdentifier) async {
  try {
    String method = 'reloadExtension';
    await _methodChannel.invokeMethod(
      '$_PLUGIN.$method',
      extensionIdentifier,
    );
    _FCXLog._i(_self, method);
  } on PlatformException catch (e) {
    var exception = FCXException(e.code, e.message);
    _FCXLog._e(_self, exception);
    throw exception;
  }
}