iosRemoveInAlbum method

Future<bool> iosRemoveInAlbum(
  1. List<AssetEntity> entities,
  2. AssetPathEntity path
)
inherited

Implementation

Future<bool> iosRemoveInAlbum(
  List<AssetEntity> entities,
  AssetPathEntity path,
) async {
  assert(Platform.isIOS || Platform.isMacOS);
  final Map result = await _channel.invokeMethod(
    PMConstants.mRemoveInAlbum,
    <String, dynamic>{
      'assetId': entities.map((AssetEntity e) => e.id).toList(),
      'pathId': path.id,
    },
  );
  return result['msg'] == null;
}