Hosanna UI API v2.3.0-next
    Preparing search index...

    Interface IBrowserHistoryManager

    Opt-in, same-document browser history. Resolve the browserHistoryManager service. Render snapshot.entry from a listener; never push from that listener. Routes are app identifiers, not URLs, so preview/deep-link launch URLs survive. NavController remains independent: an app chooses how a route becomes views.

    interface IBrowserHistoryManager {
        addListener(listener: BrowserHistoryListener): ServiceResult<() => void>;
        back(): ServiceResult;
        forward(): ServiceResult;
        getSnapshot(): ServiceResult<BrowserHistorySnapshot>;
        push(entry: BrowserHistoryEntry): ServiceResult<BrowserHistorySnapshot>;
        replace(entry: BrowserHistoryEntry): ServiceResult<BrowserHistorySnapshot>;
        start(initial: BrowserHistoryEntry): ServiceResult<BrowserHistorySnapshot>;
    }
    Index

    Methods

    • Immediately receives the current snapshot; call the returned remover on release.

      Parameters

      Returns ServiceResult<() => void>

    • Accepted traversal completes asynchronously through the listener.

      Returns ServiceResult

    • Returns ServiceResult