showPendingPushPopup static method

Future<LogDropPopupShowResult> showPendingPushPopup()

Presents any pending rich-push popup or internal browser action, if one is queued.

Implementation

static Future<LogDropPopupShowResult> showPendingPushPopup() async {
  final String? result = await _channel.invokeMethod<String>(
    MethodNames.showPendingPushPopup,
  );
  switch (result) {
    case 'SHOWN':
    case 'shown':
      return LogDropPopupShowResult.shown;
    case 'NOTHING_TO_SHOW':
    case 'nothingToShow':
      return LogDropPopupShowResult.nothingToShow;
    case 'NOT_INITIALIZED':
    case 'notInitialized':
    default:
      return LogDropPopupShowResult.notInitialized;
  }
}