Arlene

public class Arlene

The Arlene SDK object provides static methods to validate the SDK license and to create a new Arlene Session

  • Create a new Arlene Session using an ARSCNView. Initialize the ArleneSession by first declaring and instantiating a reference for the session using Arlene.create(withSceneView: ) and passing an ARSCNView as the parameter.

    lazy var session = Arlene.create(withSceneView: sceneView)
    

    Declaration

    Swift

    public static func create(withSceneView sceneView: ARSCNView, viewController: UIViewController) -> ArleneSession

    Parameters

    sceneView

    the active ARSCNView within the ViewController

  • Call this method before initialising the SDK. The appKey will be visible on the confirmation screen upon successful creation of an app, within the Arlene Publsiher Dashboard.

    Arlene.setAppKey("<Your appKey Here>")
    

    Note

    the appKey can be set within the AppDelegate or within the ViewController, the only requirement is that the appKey is set before calling .initialize()

    Declaration

    Swift

    public static func setAppKey(_ key: String)

    Parameters

    key

    The app key