# Usage

# Pinch

Tip

It is recommended that you set the SDK to test mode while developing. This will allow both you and us to verify that everything is integrated correctly. Please note that this setting persists until the application is uninstalled or test mode is explicitly disabled. Refer to native Android documentation to see how to enable this.

# Available consents

PinchConsent.surveys
PinchConsent.analytics
PinchConsent.campaigns
PinchConsent.ads
1
2
3
4

# Granting consents

This method will automatically start the SDK as soon as a consent is granted.

# Revoking consents

This method will stop the SDK automatically when no consents are granted

# Retrieve granted consents

# Start SDK

Note

The SDK will remember that it has been started, and subsequent calls to is unneccessary. If user clears or deletes app data, start has to be called again.

# Stop SDK

# Set Adid

# Retrieve SDK status

# Send demographic profile

# Send custom data

WARNING

This function only accepts stringified json. If anything else is supplied, a swallowed exception will be thrown.

# Send metadata

WARNING

This function only accepts stringified json. If anything else is supplied, a swallowed exception will be thrown.

Note

This method performs a PUT request, replacing any previous values sent with the same type.

# User mapping

You can map a user between yourself and fluxLoop by giving us a unique identifier to map against. This can be done by calling:

# Retrieve privacy terms URL

The URL for privacy terms can be retrieved by calling:

# Retrieve privacy dashboard URL

The URL for the privacy dashboard, which contains all collected data for given consent, can be retrieved by calling:

# Deleted collected PII & data

You can delete all PII and collected data about a user by calling this method. It requires an active internet connection and accepts an optional closure to verify if the request was successfully sent.

# Pinch Messaging Center

Retrieve incoming messages to user from Pinch.

Note

All fields in PinchMessage except created, expiry and opened is nullable.