MIDI_SYSEX property
final
Resource will allow sysex messages to be sent to or received from MIDI devices. These messages are privileged operations, e.g. modifying sound libraries and sampling data, or even updating the MIDI device's firmware. Permission may be requested for this resource in API levels 21 and above, if the Android device has been updated to WebView 45 or above.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - PermissionRequest.RESOURCE_MIDI_SYSEX)
- Windows WebView2 (Official API - COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGES)
Implementation
static final MIDI_SYSEX = PermissionResourceType._internalMultiPlatform(
'MIDI_SYSEX',
() {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return 'android.webkit.resource.MIDI_SYSEX';
case TargetPlatform.windows:
return 11;
default:
break;
}
return null;
},
);