enableAppReturn method
- @Deprecated("Please migrate to new `CASAppOpen` or `CASInterstitial` to enable this feature with the `isAutoshowEnabled` property.")
- AdCallback? callback
The Return Ad which is displayed once the user returns to your application after a certain period of time. To minimize the intrusiveness, short time periods are ignored.
Return ads are disabled by default. If you want to enable this feature, simply pass AdCallback as the parameter of the method.
Implementation
@Deprecated(
"Please migrate to new `CASAppOpen` or `CASInterstitial` to enable this feature with the `isAutoshowEnabled` property.")
Future<void> enableAppReturn(AdCallback? callback) {
_appReturnCallback = callback;
_isInterstitialAutoshow = true;
return _interstitial?.setAutoshowEnabled(true) ?? Future.value();
}