Skip to content

checkIsMobileTransport

Whether these options describe a mobile transport.

The same fact as ObsidianTransport.isMobile, but knowable from the options alone — so a caller can act on it before paying for a device. Reading it off a live transport means booting the emulator and the Appium session first, which is ~70 s to learn something the discriminant already says.

Import:

import { checkIsMobileTransport } from 'obsidian-integration-testing';

Signature:

function checkIsMobileTransport(options: ObsidianTransportOptions): boolean

Parameters:

ParameterTypeDescription
optionsObsidianTransportOptionsThe resolved transport options.

Returns: booleantrue for a mobile transport, false for desktop.