Classes

The following classes are available globally.

  • BaasConfig class, let you declare your BaasBox Configs before setup

    BaasConfig Object:

    • timeout: Double
    • retrylogin: Boolean that indicates if the SDK should save the user password encrypted and use it when server returns 401
    • loginStrategy: A login strategy see BaasLoginStrategy ( user defined functions for login ), if empty the default one will be used
    • signupStrategy: A signup strategy see BaasSignupStrategy ( user defined functions for signup ), if empty the default one will be used
    • logoutStrategy: A logout strategy see BaasLogoutStrategy ( user defined functions for logout: called on logout or on user not authorized ), if empty the default one will be used

    Declaration

    Swift

    public class BaasConfig
  • class BaasUser

    manages the BaasBox logged in user

    You can get the user data and manages it from here

    See more

    Declaration

    Swift

    public class BaasUser: NSObject, NSCoding
  • The BaasBox class. usage is as follows:

    In your app delegate you should setup Baasbox

    let config = BaasConfig()
    

    Here you can declare some variables, See BaasConfig for more data

    BaasBox.setup(url: "your url", appcode: "your appcode", config: config)
    

    Now you are ready to user BaasBox

    See more

    Declaration

    Swift

    public class BaasBox