isExpired method

Future<bool?> isExpired()

Checks if the downloaded media is expired. (Android only)

Returns a Future with a bool value, where true indicates that the downloaded media is expired, and false indicates otherwise.

Note: This method is specific to Android.

Implementation

Future<bool?> isExpired() {
  if (Platform.isIOS) {
    throw MissingPluginException("This method is specific to Android");
  }
  Future<bool?> isExpired =
      _methodChannel.invokeMethod<bool>("isExpired", mediaInfo.mediaId);
  return isExpired;
}