|
1 | 1 | // Copyright 2013 The Flutter Authors |
2 | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | 3 | // found in the LICENSE file. |
4 | | -// Autogenerated from Pigeon (v26.1.0), do not edit directly. |
| 4 | +// Autogenerated from Pigeon (v26.1.4), do not edit directly. |
5 | 5 | // See also: https://pub.dev/packages/pigeon |
6 | 6 | @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") |
7 | 7 |
|
@@ -213,7 +213,7 @@ class InteractiveMediaAdsLibraryPigeonInstanceManager( |
213 | 213 | } |
214 | 214 |
|
215 | 215 | /** Retrieves the instance associated with identifier, if present, otherwise `null`. */ |
216 | | - fun <T> getInstance(identifier: Long): T? { |
| 216 | + fun <T : Any> getInstance(identifier: Long): T? { |
217 | 217 | logWarningIfFinalizationListenerHasStopped() |
218 | 218 | val instance = weakInstances[identifier] as IdentityWeakReference<T>? |
219 | 219 | return instance?.get() |
@@ -4059,6 +4059,14 @@ abstract class PigeonApiVideoView( |
4059 | 4059 | Result.failure( |
4060 | 4060 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4061 | 4061 | return |
| 4062 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 4063 | + callback( |
| 4064 | + Result.failure( |
| 4065 | + FlutterError( |
| 4066 | + "missing-instance-error", |
| 4067 | + "Callback to `VideoView.onPrepared` failed because native instance was not in the instance manager.", |
| 4068 | + ""))) |
| 4069 | + return |
4062 | 4070 | } |
4063 | 4071 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4064 | 4072 | val codec = pigeonRegistrar.codec |
@@ -4090,6 +4098,14 @@ abstract class PigeonApiVideoView( |
4090 | 4098 | Result.failure( |
4091 | 4099 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4092 | 4100 | return |
| 4101 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 4102 | + callback( |
| 4103 | + Result.failure( |
| 4104 | + FlutterError( |
| 4105 | + "missing-instance-error", |
| 4106 | + "Callback to `VideoView.onCompletion` failed because native instance was not in the instance manager.", |
| 4107 | + ""))) |
| 4108 | + return |
4093 | 4109 | } |
4094 | 4110 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4095 | 4111 | val codec = pigeonRegistrar.codec |
@@ -4123,6 +4139,14 @@ abstract class PigeonApiVideoView( |
4123 | 4139 | Result.failure( |
4124 | 4140 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4125 | 4141 | return |
| 4142 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 4143 | + callback( |
| 4144 | + Result.failure( |
| 4145 | + FlutterError( |
| 4146 | + "missing-instance-error", |
| 4147 | + "Callback to `VideoView.onError` failed because native instance was not in the instance manager.", |
| 4148 | + ""))) |
| 4149 | + return |
4126 | 4150 | } |
4127 | 4151 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4128 | 4152 | val codec = pigeonRegistrar.codec |
@@ -4923,6 +4947,14 @@ abstract class PigeonApiVideoAdPlayer( |
4923 | 4947 | Result.failure( |
4924 | 4948 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4925 | 4949 | return |
| 4950 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 4951 | + callback( |
| 4952 | + Result.failure( |
| 4953 | + FlutterError( |
| 4954 | + "missing-instance-error", |
| 4955 | + "Callback to `VideoAdPlayer.addCallback` failed because native instance was not in the instance manager.", |
| 4956 | + ""))) |
| 4957 | + return |
4926 | 4958 | } |
4927 | 4959 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4928 | 4960 | val codec = pigeonRegistrar.codec |
@@ -4955,6 +4987,14 @@ abstract class PigeonApiVideoAdPlayer( |
4955 | 4987 | Result.failure( |
4956 | 4988 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4957 | 4989 | return |
| 4990 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 4991 | + callback( |
| 4992 | + Result.failure( |
| 4993 | + FlutterError( |
| 4994 | + "missing-instance-error", |
| 4995 | + "Callback to `VideoAdPlayer.loadAd` failed because native instance was not in the instance manager.", |
| 4996 | + ""))) |
| 4997 | + return |
4958 | 4998 | } |
4959 | 4999 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4960 | 5000 | val codec = pigeonRegistrar.codec |
@@ -4986,6 +5026,14 @@ abstract class PigeonApiVideoAdPlayer( |
4986 | 5026 | Result.failure( |
4987 | 5027 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
4988 | 5028 | return |
| 5029 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5030 | + callback( |
| 5031 | + Result.failure( |
| 5032 | + FlutterError( |
| 5033 | + "missing-instance-error", |
| 5034 | + "Callback to `VideoAdPlayer.pauseAd` failed because native instance was not in the instance manager.", |
| 5035 | + ""))) |
| 5036 | + return |
4989 | 5037 | } |
4990 | 5038 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
4991 | 5039 | val codec = pigeonRegistrar.codec |
@@ -5020,6 +5068,14 @@ abstract class PigeonApiVideoAdPlayer( |
5020 | 5068 | Result.failure( |
5021 | 5069 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5022 | 5070 | return |
| 5071 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5072 | + callback( |
| 5073 | + Result.failure( |
| 5074 | + FlutterError( |
| 5075 | + "missing-instance-error", |
| 5076 | + "Callback to `VideoAdPlayer.playAd` failed because native instance was not in the instance manager.", |
| 5077 | + ""))) |
| 5078 | + return |
5023 | 5079 | } |
5024 | 5080 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5025 | 5081 | val codec = pigeonRegistrar.codec |
@@ -5050,6 +5106,14 @@ abstract class PigeonApiVideoAdPlayer( |
5050 | 5106 | Result.failure( |
5051 | 5107 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5052 | 5108 | return |
| 5109 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5110 | + callback( |
| 5111 | + Result.failure( |
| 5112 | + FlutterError( |
| 5113 | + "missing-instance-error", |
| 5114 | + "Callback to `VideoAdPlayer.release` failed because native instance was not in the instance manager.", |
| 5115 | + ""))) |
| 5116 | + return |
5053 | 5117 | } |
5054 | 5118 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5055 | 5119 | val codec = pigeonRegistrar.codec |
@@ -5082,6 +5146,14 @@ abstract class PigeonApiVideoAdPlayer( |
5082 | 5146 | Result.failure( |
5083 | 5147 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5084 | 5148 | return |
| 5149 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5150 | + callback( |
| 5151 | + Result.failure( |
| 5152 | + FlutterError( |
| 5153 | + "missing-instance-error", |
| 5154 | + "Callback to `VideoAdPlayer.removeCallback` failed because native instance was not in the instance manager.", |
| 5155 | + ""))) |
| 5156 | + return |
5085 | 5157 | } |
5086 | 5158 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5087 | 5159 | val codec = pigeonRegistrar.codec |
@@ -5113,6 +5185,14 @@ abstract class PigeonApiVideoAdPlayer( |
5113 | 5185 | Result.failure( |
5114 | 5186 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5115 | 5187 | return |
| 5188 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5189 | + callback( |
| 5190 | + Result.failure( |
| 5191 | + FlutterError( |
| 5192 | + "missing-instance-error", |
| 5193 | + "Callback to `VideoAdPlayer.stopAd` failed because native instance was not in the instance manager.", |
| 5194 | + ""))) |
| 5195 | + return |
5116 | 5196 | } |
5117 | 5197 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5118 | 5198 | val codec = pigeonRegistrar.codec |
@@ -5210,6 +5290,14 @@ abstract class PigeonApiAdsLoadedListener( |
5210 | 5290 | Result.failure( |
5211 | 5291 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5212 | 5292 | return |
| 5293 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5294 | + callback( |
| 5295 | + Result.failure( |
| 5296 | + FlutterError( |
| 5297 | + "missing-instance-error", |
| 5298 | + "Callback to `AdsLoadedListener.onAdsManagerLoaded` failed because native instance was not in the instance manager.", |
| 5299 | + ""))) |
| 5300 | + return |
5213 | 5301 | } |
5214 | 5302 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5215 | 5303 | val codec = pigeonRegistrar.codec |
@@ -5308,6 +5396,14 @@ abstract class PigeonApiAdErrorListener( |
5308 | 5396 | Result.failure( |
5309 | 5397 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5310 | 5398 | return |
| 5399 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5400 | + callback( |
| 5401 | + Result.failure( |
| 5402 | + FlutterError( |
| 5403 | + "missing-instance-error", |
| 5404 | + "Callback to `AdErrorListener.onAdError` failed because native instance was not in the instance manager.", |
| 5405 | + ""))) |
| 5406 | + return |
5311 | 5407 | } |
5312 | 5408 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5313 | 5409 | val codec = pigeonRegistrar.codec |
@@ -5405,6 +5501,14 @@ abstract class PigeonApiAdEventListener( |
5405 | 5501 | Result.failure( |
5406 | 5502 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
5407 | 5503 | return |
| 5504 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 5505 | + callback( |
| 5506 | + Result.failure( |
| 5507 | + FlutterError( |
| 5508 | + "missing-instance-error", |
| 5509 | + "Callback to `AdEventListener.onAdEvent` failed because native instance was not in the instance manager.", |
| 5510 | + ""))) |
| 5511 | + return |
5408 | 5512 | } |
5409 | 5513 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
5410 | 5514 | val codec = pigeonRegistrar.codec |
@@ -6427,6 +6531,14 @@ abstract class PigeonApiCompanionAdSlotClickListener( |
6427 | 6531 | Result.failure( |
6428 | 6532 | FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) |
6429 | 6533 | return |
| 6534 | + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { |
| 6535 | + callback( |
| 6536 | + Result.failure( |
| 6537 | + FlutterError( |
| 6538 | + "missing-instance-error", |
| 6539 | + "Callback to `CompanionAdSlotClickListener.onCompanionAdClick` failed because native instance was not in the instance manager.", |
| 6540 | + ""))) |
| 6541 | + return |
6430 | 6542 | } |
6431 | 6543 | val binaryMessenger = pigeonRegistrar.binaryMessenger |
6432 | 6544 | val codec = pigeonRegistrar.codec |
|
0 commit comments