hideSlider method

Future<void> hideSlider()

Hides the currently displayed slider ad.

Implementation

Future<void> hideSlider() async {
  try {
    await MethodHandler.invokeNativeMethod("sliderAdViewHide");
  } on OsmosException {
    rethrow;
  } catch (e) {
    throw OsmosException(
      errorCode: OsmosErrorCodes.pipAdError,
      details: 'Failed to hide slider ad: ${e.toString()}',
      nativeError: e,
    );
  }
}