public class

Fritz

extends Object
java.lang.Object
   ↳ ai.fritz.core.Fritz

Class Overview

Fritz is the core class to set up the SDK.

You must initialize the SDK before using any dependant libraries. You may do so by calling configure(Context), which searches for fritz_app_token defined in the AndroidManifest.

For more information, visit Getting started

Summary

Public Constructors
Fritz()
Public Methods
static void configure(Context context)
Initializes the Fritz SDK with the fritz_app_token found in the AndroidManifest.xml file.
static void configure(Context context, String appToken)
static Context getAppContext()
static AssetManager getAssetManager()
static boolean isInitialized()
Checks to see if the Fritz SDK has been initialized.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Fritz ()

Public Methods

public static void configure (Context context)

Initializes the Fritz SDK with the fritz_app_token found in the AndroidManifest.xml file.

Call Fritz.configure(context); from the MainActivity or Application's onCreate method.

This allows you to integrate ready-to-use features or monitor your existing models running on mobile.

Parameters
context the calling context (application, activity)

public static void configure (Context context, String appToken)

public static Context getAppContext ()

public static AssetManager getAssetManager ()

public static boolean isInitialized ()

Checks to see if the Fritz SDK has been initialized.

Returns
  • if the Fritz SDK is initialized with a session.