onLicenseWillExpire method

FutureOr<void> onLicenseWillExpire(
  1. dynamic days
)
override

@hidden internal use only @detail callback @author wangyu.1705 @brief license 过期时间提醒 @param days 即将过期剩余天数

Implementation

FutureOr<void> onLicenseWillExpire(dynamic days) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler)
      .onLicenseWillExpire
      ?.call(int.tryParse(days.toString()) ?? 0);
}