teardown

fun teardown(context: Context, fairmaticOperationCallback: FairmaticOperationCallback?)

Shuts down the Fairmatic framework. This may be called if the client code wishes to turn off the Fairmatic framework to isolate the operations that the application is doing. This is a no-op if setup has not been called.

Once teardown finishes, the com.fairmatic.sdk.classes.FairmaticOperationCallback is called (if provided) with the result of the teardown operation. Callback will be made on calling thread if it's Looper is already prepared, else the callback is made on the Main Thread.

N.B. the library is typically very conservative about what modules of the phone it uses for tracking and how much memory it uses etc. and as such is very conservative about memory and battery impact. So this method should not really be called to save power/memory for the application.