startLinkingProcess method
Future<void>
startLinkingProcess(
- LinkEnvironment host,
- String sessionKey,
- dynamic onSuccess(),
- dynamic onError(),
override
Implementation
@override
Future<void> startLinkingProcess(LinkEnvironment host, String sessionKey,
Function(String) onSuccess, Function(Exception) onError) async {
try {
final customerId = await methodChannel.invokeMethod(
'startLinkingProcess', {
'linkEnvironment': host.toString().split('.').last,
'sessionKey': sessionKey
});
onSuccess(customerId);
} on PlatformException catch (e) {
// Handle any platform-specific errors
onError(e);
}
}