@procivis/react-native-one-core
    Preparing search index...

    Interface NfcHce

    Provider of NFC host-card emulation (HCE)

    interface NfcHce {
        isEnabled(): Promise<boolean>;
        isSupported(): Promise<boolean>;
        startHosting(
            handler: NfcHceHandler,
            message: undefined | string,
        ): Promise<void>;
        stopHosting(success: boolean): Promise<void>;
    }
    Index

    Methods

    • Returns Promise<boolean>

    • Returns Promise<boolean>

    • Starts NFC host-card emulation (HCE)

      • handler implementation for handling NFC events
      • message UI message to be placed on the system overlay (iOS)

      Parameters

      Returns Promise<void>

    • stops emulation started via start_hosting

      • success true if hosting should be ended with a success or failure (iOS)

      Parameters

      • success: boolean

      Returns Promise<void>