Skip to content

API Reference / @gtkx/runtime / tryGetHandle

Function: tryGetHandle()

tryGetHandle(instance): ExternalObject<Handle> | undefined

Defined in: runtime/dist/registry.d.ts:62

Returns the native handle bound to an instance, or undefined when there is none or the instance is null.

Parameters

instance

object | null | undefined

Returns

ExternalObject<Handle> | undefined

Released under the MPL-2.0 License.