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: "native.objc.classes" | "native.objc.invoke" | "native.objc.invokeAsync" | "native.objc.batch" | "native.objc.snapshot" | "native.objc.ivars" | "native.objc.associations" | "native.objc.hooks" | "native.ffi.symbols" | "native.ffi.call" | "native.fabric.mount" | "native.fabric.async" | "native.runtime.events" | "native.java.classes" | "native.java.construct" | "native.java.fields" | "native.java.invoke" | "native.java.invokeAsync" | "native.java.hooks" | "native.java.batch" | "native.java.associations" | "native.debug.evaluations" | "native.debug.environment"): booleanParameters
| Name | Type | Description |
|---|---|---|
| capability | "native.objc.classes" | "native.objc.invoke" | "native.objc.invokeAsync" | "native.objc.batch" | "native.objc.snapshot" | "native.objc.ivars" | "native.objc.associations" | "native.objc.hooks" | "native.ffi.symbols" | "native.ffi.call" | "native.fabric.mount" | "native.fabric.async" | "native.runtime.events" | "native.java.classes" | "native.java.construct" | "native.java.fields" | "native.java.invoke" | "native.java.invokeAsync" | "native.java.hooks" | "native.java.batch" | "native.java.associations" | "native.debug.evaluations" | "native.debug.environment" | The capability to look for. |
Returns
booleanWhether the bridge provides it.