launchIntent method

  1. @override
Future<String?> launchIntent({
  1. required String smdpAddress,
  2. required String activationToken,
})
override

Implementation

@override
Future<String?> launchIntent({required String smdpAddress, required String activationToken}) async {
  final isSupported = await isSupportESim();
  if (isSupported != true) {
    throw PlatformException(
      code: 'ESIM_NOT_SUPPORTED',
      message: 'eSIM is not supported on this device',
    );
  }
  final result = await methodChannel.invokeMethod<String?>('launchIntent', {'profile': "LPA:1\$$smdpAddress\$$activationToken"});
  return result;
}