UNPKG

unfc

Version:

A framework-agnostic NFC package for reading/writing NFC tags in web apps and PWAs

33 lines (32 loc) 1.01 kB
export interface AndroidSupportInfo { isAndroid: boolean; version: number | null; supportsNfc: boolean; supportsWebNfc: boolean; } /** * Provides detailed information about Android NFC compatibility */ export declare class AndroidDetection { /** * Detects if the current device is running Android and its NFC capabilities */ static getAndroidSupportInfo(): AndroidSupportInfo; /** * Checks if this Android device likely supports NFC through native APIs */ static hasNativeNfcSupport(): boolean; /** * Checks if this Android device supports Web NFC API */ static hasWebNfcSupport(): boolean; /** * Checks if a native bridge should be used instead of Web NFC * This is useful to determine if we're in a Capacitor app context */ static shouldUseNativeBridge(): boolean; /** * Provides guidance for enabling NFC on Android */ static getAndroidNfcGuidance(): string; }