Link Search Menu Expand Document

Initializing the Studio Framework for iOS

To use Lofelt Studio haptics in your app, you must first initialize a LofeltHaptics object. You will then be able to issue haptic commands to that object. Note that all of the following code examples are written in Swift.

let haptics = try? LofeltHaptics.init(andReturnError: ())

Each LofeltHaptics object you create is capable of playing back one haptic file at a time or converting one audio stream to haptics at a time.

< Prev Next >

Copyright © 2020 Lofelt GmbH. All rights reserved.