zoukankan      html  css  js  c++  java
  • Navigator对象

    interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomationInformation, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
        readonly activeVRDisplays: ReadonlyArray<VRDisplay>;
        readonly clipboard: Clipboard;
        readonly credentials: CredentialsContainer;
        readonly doNotTrack: string | null;
        readonly geolocation: Geolocation;
        readonly maxTouchPoints: number;
        readonly mediaDevices: MediaDevices;
        readonly msManipulationViewsEnabled: boolean;
        readonly msMaxTouchPoints: number;
        readonly msPointerEnabled: boolean;
        readonly permissions: Permissions;
        readonly pointerEnabled: boolean;
        readonly serviceWorker: ServiceWorkerContainer;
        getGamepads(): (Gamepad | null)[];
        getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
        getVRDisplays(): Promise<VRDisplay[]>;
        msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
        requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
        sendBeacon(url: string, data?: BodyInit | null): boolean;
        share(data?: ShareData): Promise<void>;
        vibrate(pattern: number | number[]): boolean;
    }

    参考:https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator

    重要属性:mediaDevices  https://www.cnblogs.com/iuyy/p/13406203.html

  • 相关阅读:
    【English】20190522
    06_Intent和IntentFilter
    05_Content Provider
    04_ Broadcast Receiver
    03_Service的绑定
    02_启动和销毁Service
    01_Activity生命周期及传递数据
    Android对应版本号
    如何在word中插入代码
    项目经验总结
  • 原文地址:https://www.cnblogs.com/iuyy/p/13406190.html
Copyright © 2011-2022 走看看