orphe-core-insole - v0.4.0
    Preparing search index...

    Interface OrpheInjections

    Orphe のコンストラクタへ渡せる注入点

    interface OrpheInjections {
        bluetooth?: BleBluetooth;
        bridgeEnvironment?: BridgeEnvironment;
        bridgeTiming?: BridgeTimingOptions;
        clock?: () => number;
        profile?: CoreProfileOptions;
        sharedBridge?: SharedBridgeOptions;
        storage?: StorageLike;
        wait?: (ms: number) => Promise<void>;
    }

    Hierarchy (View Summary)

    Index
    bluetooth?: BleBluetooth

    注入点(テスト・非ブラウザ環境用): Web Bluetooth 実装。既定 navigator.bluetooth

    bridgeEnvironment?: BridgeEnvironment

    タブ間共有の環境(テストではモックを注入する)

    bridgeTiming?: BridgeTimingOptions

    タブ間共有のタイミング設定

    clock?: () => number

    テスト用注入点: BLE 実測周波数計測の単調クロック [ms]。既定 performance.now

    coreProfile() のオプション(namePrefix / settleMs など)。namePrefix の既定は 'CR-'

    sharedBridge?: SharedBridgeOptions

    タブ間共有(begin の useSharedBridge)の環境とタイミング。通常は省略する

    storage?: StorageLike

    注入点: デバイス記憶の保存先。既定 localStorage

    wait?: (ms: number) => Promise<void>

    注入点: 待機の実装。既定 setTimeout