F

has

Checks whether the native bridge on this device provides a capability, so an addon can fall back when the other platform lacks it.

function has(capability: NativeBridgeCapability): boolean

Parameters

NameTypeDescription
capabilityNativeBridgeCapability

The capability to look for.

Returns

boolean

Whether the bridge provides it.