requestGameChance method
One trigger's chance request. Returns the PlayDecision so the caller (the surface) can open, render, or drop. Never throws.
Implementation
Future<PlayDecision> requestGameChance({
required String campaignKey,
required String triggerId,
required bool direct,
required bool Function() isGameBusy,
String? testInvocationId,
}) async {
try {
return await playSession.request(PlayRequest(
campaignKey: campaignKey,
triggerId: triggerId,
testInvocationId: testInvocationId,
direct: direct,
isGameBusy: isGameBusy,
));
} catch (_) {
return const PlayDrop(PlaySession.failNetwork);
}
}