isLocallyAvailable method
Future<bool>
isLocallyAvailable(
- String id, {
- bool isOrigin = false,
- int subtype = 0,
- PMDarwinAVFileType? darwinFileType,
Implementation
Future<bool> isLocallyAvailable(
String id, {
bool isOrigin = false,
int subtype = 0,
PMDarwinAVFileType? darwinFileType,
}) async {
if (Platform.isIOS || Platform.isMacOS) {
return await _channel.invokeMethod(
PMConstants.mIsLocallyAvailable,
<String, dynamic>{
'id': id,
'isOrigin': isOrigin,
'subtype': subtype,
'darwinFileType': darwinFileType?.value ?? 0,
},
);
}
return true;
}