MiniAppNavigationBarDelegate

public protocol MiniAppNavigationBarDelegate : AnyObject

A delegate implemented by the Mini App view to get the actions triggered by UI

  • Method to call when a user want to interact with Mini App navigation history

    Declaration

    Swift

    @discardableResult
    func miniAppNavigationBar(didTriggerAction action: MiniAppNavigationAction) -> Bool

    Parameters

    action

    the action requested (go back or go forward) Returns if action has been triggered or not

  • Method to check before closing the miniapp. This makes sure whether we need to display alert to the user before closing the mini-app

    Declaration

    Swift

    func miniAppShouldClose() -> CloseAlertInfo?

    Return Value

    CloseAlertInfo: @discardableResult