Package 

Class PassioConfiguration


  • 
    public final class PassioConfiguration
    extends BaseConfiguration
                        

    A PassioConfiguration object must be constructed to configure the SDK. The configuration process depends on the location of the files needed for the SDK to work. There are three different ways to configure the SDK depending on the attributes of the object.

    • Constructor Detail

      • PassioConfiguration

        PassioConfiguration(Context appContext, String key)
        Parameters:
        appContext - Application context needed for the license fetch service.
        key - Developer key provided by Passio Inc.
    • Method Detail

      • getSdkDownloadsModels

         final Boolean getSdkDownloadsModels()

        SDK Downloads Models indicates that the SDK will try to fetch the latest files every 2 weeks. This mode works with the provided customURL or without it. If customURL is not null, the SDK will go to that URL to try to fetch the latest files. Contrastingly, it will go to the BaseUrl (Passio's server) to try to fetch the files. The flow of the configuration process is the same like in the customURL case.

      • setSdkDownloadsModels

         final Unit setSdkDownloadsModels(Boolean sdkDownloadsModels)

        SDK Downloads Models indicates that the SDK will try to fetch the latest files every 2 weeks. This mode works with the provided customURL or without it. If customURL is not null, the SDK will go to that URL to try to fetch the latest files. Contrastingly, it will go to the BaseUrl (Passio's server) to try to fetch the files. The flow of the configuration process is the same like in the customURL case.

      • getLocalFiles

         final List<Uri> getLocalFiles()

        This method requires that the correct files were already downloaded and that the Uris for these files are available. Providing a list of Uris for the files needed for the SDK to work the SDK will copy them to it's internal directory (using the App's Cache folder). If the configuration process is completed by returning PassioMode.IS_READY_FOR_DETECTION, the files provided in the localFiles property can be deleted from the original location because the SDK will use the copies in the App's Cache folder.

      • setLocalFiles

         final Unit setLocalFiles(List<Uri> localFiles)

        This method requires that the correct files were already downloaded and that the Uris for these files are available. Providing a list of Uris for the files needed for the SDK to work the SDK will copy them to it's internal directory (using the App's Cache folder). If the configuration process is completed by returning PassioMode.IS_READY_FOR_DETECTION, the files provided in the localFiles property can be deleted from the original location because the SDK will use the copies in the App's Cache folder.