Skip to main content
Triggering the QuickoSDK is the process of launching the tax solution within your app. This is typically done by calling the open method provided by the SDK. It’s important to note that the implementation of this method varies slightly between Android and iOS, catering to the specific requirements and conventions of each platform.

open method

Definition:

Parameters

  1. Platform Specific Param
    • Android: android.content.Context
    • iOS: UIViewController
  2. options (Options): An object that allows customisation of the SDK’s user interface.
Example Usage:

Error Handling

IllegalArgumentException

This exception is thrown when the API key has not been set before invoking the open method, and if your intent is connect.
Example:
In the above example, if the API key hasn’t been set before calling the open method, the IllegalArgumentException will be thrown, and the error message “Error: API Key has not been set.” will be printed.

Best Practices

  • Always ensure that the API key has been set using the setAPIKey method before invoking the open method.
  • It’s a good practice to wrap the open method call inside a try-catch block to handle the IllegalArgumentException and provide feedback to the user or log the error for debugging purposes.