CLASS

# RoomleARView

Contents

  • Methods
    • init()
    • init(frame:)
    • init(coder:)
    • attachTo(view:)
    • showProduct(_:)
public class RoomleARView: ARView

View that displays the Roomle AR Scene

# Methods

# init()

public convenience init()

# init(frame:)

public required init(frame: CGRect)

# init(coder:)

public required init?(coder: NSCoder)

# attachTo(view:)

public func attachTo(view parentView: UIView)

Adds the RoomleARView as a subview to the provided view.

The AR view will be added on top of already existing subviews.

  • Parameter parentView: The view to which the AR view will be attached to as subview.

# Parameters

Name Description
parentView The view to which the AR view will be attached to as subview.

# showProduct(_:)

public func showProduct(_ productId: String)

Shows a Roomle Product in AR

The product will be downloaded from the Cloud and added to the AR scene after the tracking is established.

The productId string can either be a Configuration ID or a Catalog Item ID.

Examples:

Configuration ID:

koinor:FORMIA_LeftGroup:79FBF0D6C79A2598B5FF943111EA29DC0C6884AA97F4383582B47F69C14DDB2C

Catalog Item ID:

usm:frame
  • Parameter productId: The productId of the product to show.

# Parameters

Name Description
productId The productId of the product to show.