NativeMessageTarget constructor
NativeMessageTarget(
{ - required String application,
- List<String>? androidCertificates,
})
Implementation
NativeMessageTarget({
/// The name of the native messaging host, or external Android app's package
/// name.
required String application,
/// List of expected signing certificates for the external Android app
/// specified as SHA-256 fingerprints. If non-empty, the connection is
/// established if the app is signed by at least one of the certificates
/// provided. Must be non-empty for packed extensions on Android. Ignored
/// for other platforms.
List<String>? androidCertificates,
}) : _wrapped = $js.NativeMessageTarget(
application: application,
androidCertificates: androidCertificates?.toJSArray((e) => e.toJS),
);