# FloatingClient

    @objc
    class FloatingClient

    extension FloatingClient : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSObjectProtocol

Undocumented

- `configuration`

  Undocumented

  #### Declaration

  Swift

      @objc
      let configuration: Configuration

- `init(configuration:)`

  Init FloatingClient with configuration.

  Throws

  `LSError` if input configuration is wrong.

  #### Declaration

  Swift

      @objc
      init(configuration: Configuration) throws

  #### Parameters

  `configuration` | Configuration of FloatingClient.

- `licenseFile`

  Filesystem path to the license.

  #### Declaration

  Swift

      @objc
      var licenseFile: URL { get }

- `currentLicense`

  Activated License or nil if no license is active.

  #### Declaration

  Swift

      @objc
      var currentLicense: License? { get }

- `register(userID:)`

  Register client with given id.

  Send register license request to the Floating server.

  Throws

  `LSError` if registration fails.

  #### Declaration

  Swift

      @objc
      func register(userID: String) throws -> License

  #### Parameters

  `userID` | User or instance id for license registration, it can be anything - email, host or domain name, handle, etc.

  #### Return Value

  Shared pointer to License if registration succeeded, throws exceptions in case of errors.

- `unregister(userID:)`

  Unregister client with given id.

  Throws

  `LSError` if unregistration fails.

  #### Declaration

  Swift

      @objc
      func unregister(userID: String) throws

- `clearLocalStorage()`

  Remove license file and internal SDK files if any of them exist.

  Note

  Typically should be called after license deactivation in the app uninstaller.

  Throws

  Error if clearing fails.

  #### Declaration

  Swift

      @objc
      func clearLocalStorage() throws

- `checkConnection()`

  Helper method to check connection to the Floating server.

  #### Declaration

  Swift

      @objc
      func checkConnection() -> Bool

  #### Return Value

  `true` if SDK is able to connect to the Floating server and `false` otherwise.

© 2025 LicenseSpring. All rights reserved. (Last updated: 2025-10-22)

Generated by jazzy ♪♫ v0.15.3, a Realm project.