本文整理汇总了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);
}
示例2: test_get_plugins_options
function test_get_plugins_options() {
const options: fingerprint2.Options = {
plugins: {
sortPluginsFor: [/foo/i],
excludeIE: true,
},
};
fingerprint2.get(options, defaultCallback);
}
示例3: test_get_audio_options
function test_get_audio_options() {
const options: fingerprint2.Options = {
audio: {
timeout: 10,
excludeIOS11: true,
},
};
fingerprint2.get(options, defaultCallback);
}
示例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);
}
示例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);
}
示例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);
}
示例7: test_get_with_options
function test_get_with_options() {
fingerprint2.get({ excludes: { userAgent: true } }, defaultCallback);
}
示例8: test_get_default_settings
function test_get_default_settings() {
fingerprint2.get(defaultCallback);
}