當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript fingerprintjs2.get函數代碼示例

本文整理匯總了TypeScript中fingerprintjs2.get函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript get函數的具體用法?TypeScript get怎麽用?TypeScript get使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了get函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: test_get_screen_options

function test_get_screen_options() {
    const options: fingerprint2.Options = {
        screen: {
            detectScreenOrientation: true,
        },
    };
    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:8,代碼來源:fingerprintjs2-tests.ts

示例2: test_get_plugins_options

function test_get_plugins_options() {
    const options: fingerprint2.Options = {
        plugins: {
            sortPluginsFor: [/foo/i],
            excludeIE: true,
        },
    };
    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:9,代碼來源:fingerprintjs2-tests.ts

示例3: test_get_audio_options

function test_get_audio_options() {
    const options: fingerprint2.Options = {
        audio: {
            timeout: 10,
            excludeIOS11: true,
        },
    };
    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:9,代碼來源:fingerprintjs2-tests.ts

示例4: test_get_fonts_options

function test_get_fonts_options() {
    const options: fingerprint2.Options = {
        fonts: {
            swfContainerId: 'swfContainerId',
            swfPath: 'pathToSwf',
            userDefinedFonts: ['font1', 'font2'],
            extendedJsFonts: true,
        },
    };
    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:11,代碼來源:fingerprintjs2-tests.ts

示例5: test_get_extraComponents_options

function test_get_extraComponents_options() {
    const options: fingerprint2.Options = {
        extraComponents: [
            {
                key: 'foo',
                getData(done, options) {
                    // $ExpectType (value: any) => void
                    done;
                    // $ExpectType Options
                    options;

                    done('foo');
                },
                pauseBefore: false,
            },
        ],
    };
    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:19,代碼來源:fingerprintjs2-tests.ts

示例6: test_get_excludes_options

function test_get_excludes_options() {
    let options: fingerprint2.Options;

    options = { excludes: { userAgent: true } };
    options = { excludes: { language: true } };
    options = { excludes: { colorDepth: true } };
    options = { excludes: { deviceMemory: true } };
    options = { excludes: { pixelRatio: true } };
    options = { excludes: { hardwareConcurrency: true } };
    options = { excludes: { screenResolution: true } };
    options = { excludes: { availableScreenResolution: true } };
    options = { excludes: { timezoneOffset: true } };
    options = { excludes: { timezone: true } };
    options = { excludes: { sessionStorage: true } };
    options = { excludes: { localStorage: true } };
    options = { excludes: { indexedDb: true } };
    options = { excludes: { addBehavior: true } };
    options = { excludes: { openDatabase: true } };
    options = { excludes: { cpuClass: true } };
    options = { excludes: { platform: true } };
    options = { excludes: { doNotTrack: true } };
    options = { excludes: { plugins: true } };
    options = { excludes: { canvas: true } };
    options = { excludes: { webgl: true } };
    options = { excludes: { webglVendorAndRenderer: true } };
    options = { excludes: { adBlock: true } };
    options = { excludes: { hasLiedLanguages: true } };
    options = { excludes: { hasLiedResolution: true } };
    options = { excludes: { hasLiedOs: true } };
    options = { excludes: { hasLiedBrowser: true } };
    options = { excludes: { touchSupport: true } };
    options = { excludes: { fonts: true } };
    options = { excludes: { fontsFlash: true } };
    options = { excludes: { audio: true } };
    options = { excludes: { enumerateDevices: true } };

    fingerprint2.get(options, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:38,代碼來源:fingerprintjs2-tests.ts

示例7: test_get_with_options

function test_get_with_options() {
    fingerprint2.get({ excludes: { userAgent: true } }, defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:3,代碼來源:fingerprintjs2-tests.ts

示例8: test_get_default_settings

function test_get_default_settings() {
    fingerprint2.get(defaultCallback);
}
開發者ID:CNBoland,項目名稱:DefinitelyTyped,代碼行數:3,代碼來源:fingerprintjs2-tests.ts


注:本文中的fingerprintjs2.get函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。