Preparing search index...

    Class NativeLibraryAsset

    NativeLibraryAsset loads a native shared library (e.g. .so, .dylib, .dll) and exposes its exports to JavaScript.

    Lens Scripting Version 364

    Hierarchy (View Summary)

    Index

    Properties

    name: string

    The name of the Asset in Lens Studio.

    ""
    
    uniqueIdentifier: string

    Lens Scripting Version 176

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    • Loads the native library specified by the library property and returns the exports Object. Multiple calls to this method will return the same Object until unload() is called.

      Returns Promise<any>

      Lens Scripting Version 364

    • Unloads the native library and releases the exports Object. It is undefined behavior to call any functions on the exports Object after calling this method.

      Returns Promise<void>

      Lens Scripting Version 364