setupWithNativeBundle method

  1. @override
Future<void> setupWithNativeBundle({
  1. String? iosFileName,
  2. String? androidFileName,
  3. String? macosFileName,
  4. String? instanceId,
})
override

Initializes the TrustPin SDK by loading credentials from a platform bundle file at the native layer. The Dart side never reads or parses the file; iOS/macOS read a Plist via TrustPinConfiguration.fromPlist, Android reads a JSON asset via TrustPinConfiguration.fromAssets.

Per-platform filename arguments are forwarded verbatim to the matching native loader. A null value tells the native side to use its own default (TrustPin-Info.plist on iOS/macOS, trustpin.json on Android).

Implementation

@override
Future<void> setupWithNativeBundle({
  String? iosFileName,
  String? androidFileName,
  String? macosFileName,
  String? instanceId,
}) async {
  await methodChannel.invokeMethod('setupWithNativeBundle', {
    'iosFileName': iosFileName,
    'androidFileName': androidFileName,
    'macosFileName': macosFileName,
    'instanceId': instanceId,
  });
}