-
public final class PassioConfiguration extends BaseConfiguration
Used to configure the SDK.
-
-
Field Summary
Fields Modifier and Type Field Description private StringprojectIdprivate BooleanforceInstallLocalFilesprivate List<Uri>localFilesprivate IntegerdebugModeprivate final ContextappContextprivate final Stringkey
-
Constructor Summary
Constructors Constructor Description PassioConfiguration(Context appContext, String key)
-
Method Summary
Modifier and Type Method Description final StringgetProjectId()Project ID defined in the Passio platform. final UnitsetProjectId(String projectId)Project ID defined in the Passio platform. final BooleangetForceInstallLocalFiles()final UnitsetForceInstallLocalFiles(Boolean forceInstallLocalFiles)final List<Uri>getLocalFiles()This method requires that the correct files were already downloaded and that the Uris for these files are available. final UnitsetLocalFiles(List<Uri> localFiles)This method requires that the correct files were already downloaded and that the Uris for these files are available. final IntegergetDebugMode()Use debugMode = 1 to get more verbose logs. final UnitsetDebugMode(Integer debugMode)Use debugMode = 1 to get more verbose logs. final ContextgetAppContext()final StringgetKey()StringtoString()-
-
Method Detail
-
getProjectId
final String getProjectId()
Project ID defined in the Passio platform.
-
setProjectId
final Unit setProjectId(String projectId)
Project ID defined in the Passio platform.
-
getForceInstallLocalFiles
final Boolean getForceInstallLocalFiles()
-
setForceInstallLocalFiles
final Unit setForceInstallLocalFiles(Boolean forceInstallLocalFiles)
-
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.
-
getDebugMode
final Integer getDebugMode()
Use debugMode = 1 to get more verbose logs.
-
setDebugMode
final Unit setDebugMode(Integer debugMode)
Use debugMode = 1 to get more verbose logs.
-
getAppContext
final Context getAppContext()
-
-
-
-