9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Namespaces

NamespaceDescription
layoutUtility module related to layout.

Classes

ClassDescription
ClassInfoA Class holding information about a class
ScopeErrorAn Error class that provides additional context to an error.
SourceA class encapsulating information for source code origin.
SourceErrorRepresents a scope error providing addiot

Type Aliases

Type AliasDescription
NativeWindow-

Variables

VariableDescription
ad-
androidUtilities related to Android.
CORE_ANIMATION_DEFAULTSDefault animation values used throughout core
debugA runtime option indicating whether the build has debugging enabled.
FILE_PREFIX-
FONT_PREFIX-
iosUtilities related to iOS.
iOSNativeHelper-
RESOURCE_PREFIX-
SDK_VERSION-
SYSTEM_PREFIX-

Functions

FunctionDescription
clearIntervalClears repeated function which was set up by calling setInterval().
clearTimeoutClears the delay set by a call to the setTimeout function.
convertStringConverts string value to number or boolean.
copyToClipboardCopy value to device clipboard.
dataDeserializeData deserialization from Native > JS
dataSerializeData serialization from JS > Native
debounceCreates a debounced function that delays invoking the provided function until after a specified delay
dismissKeyboardDismiss any keyboard visible on the screen.
dismissSoftInputHides the soft input method, usually a soft keyboard.
dispatchToMainThreadDispatches the passed function for execution on the main thread
dispatchToUIThreadDispatches the passed function for execution on the UI thread
eliminateDuplicatesRemoves duplicate elements from array.
escapeRegexSymbolsEscapes special regex symbols (., *, ^, $ and so on) in string in order to create a valid regex from it.
executeOnMainThreadChecks if the current thread is the main thread. Directly calls the passed function if it is, or dispatches it to the main thread otherwise.
executeOnUIThreadRuns the passed function on the UI Thread.
GCAn utility function that invokes garbage collection on the JavaScript side.
getBaseClassesA function that gets the entire class hierarchy of an object.
getClassA function that gets the class name of an object.
getClassInfoA function that gets the ClassInfo for an object.
getDurationWithDampingFromSpringGet a duration with damping value from various spring related settings. Helpful when needing to convert spring settings to isolated duration value.
getFileExtensionGet file extension from file path
getModuleNameGets module name from path.
getWindowGet the UIWindow or android.view.Window of the app
hasDuplicatesChecks if array has any duplicate elements.
isBooleanA function that checks if something is a valid boolean.
isDataURIReturns true if the specified URI is data URI (http://en.wikipedia.org/wiki/Data_URI_scheme).
isDefinedA function that checks if something is defined (not undefined).
isEmoji-
isFileOrResourcePathReturns true if the specified path points to a resource or local file.
isFontIconURIReturns true if the specified URI is a font icon URI like "fontIcon://&#xf1e0".
isFunctionA function that checks if something is a function.
isMainThread-
isNullOrUndefinedA function that checks if something is not defined (null or undefined).
isNumberA function that checks if something is a valid number.
isObjectA function that checks if something is an object.
isRealDeviceChecks whether the application is running on real device and not on simulator/emulator.
isStringA function that checks if something is a valid string.
isSystemURIReturns true if the specified URI is a system URI like "sys://...".
isUndefinedA function that checks if something is "undefined".
mainThreadifyReturns a function wrapper which executes the supplied function on the main thread. The wrapper behaves like the original function and passes all of its arguments BUT discards its return value.
merge-
mergeSortSorts an array by using merge sort algorithm (which ensures stable sort since the built-in Array.sort() does not promise a stable sort).
numberHasDecimalsChecks if the number has decimals
numberIs64BitChecks if the number is 64 bit
openFileOpens file.
openUrlOpens url.
openUrlAsyncOpens url asynchronously.
queueGCAn utility function that queues a garbage collection, multiple calls in quick succession are debounced by default and only one gc will be executed after 900ms.
queueMacrotaskQueues the passed function to be ran in a macroTask
releaseNativeObjectReleases the reference to the wrapped native object
sanitizeModuleNameHelps sanitize a module name if it is prefixed with '~/', '~' or '/'
setIntervalCalls a function repeatedly with a delay between each call.
setTimeoutCalls a function after a specified delay.
supportsGlass-
throttleCreates a throttled function that only invokes the provided function at most once per specified delay
toUIStringReturns a string representation of an object to be shown in UI.
verifyCallbackA function that checks if something is a valid function.
Previous
write
Next
layout