Classes
The following classes are available globally.
-
BaasConfig class, let you declare your
BaasBox
Configs before setupBaasConfig 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
-
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 dataBaasBox.setup(url: "your url", appcode: "your appcode", config: config)
Now you are ready to user BaasBox
See moreDeclaration
Swift
public class BaasBox