public interface

A4SIdsProvider

com.ad4screen.sdk.A4SIdsProvider

Class Overview

Interface that you can use in order to dynamically provide partnerId and privateKey to Ad4Push SDK
This can be useful for instance if you need to retrieve partnerId/privateKey from your own server
This interface must return as fast as possible, so never do any long running operations in this provider

Usage
Remove meta-data com.ad4screen.partnerid and com.ad4screen.privatekey from your manifest
and add the following meta data to A4SService tag :

 
 <meta-data 
 	android:name="com.ad4screen.idsprovider" 
 	android:value="your.package.MyA4SIdsProvider" />
 
 

Please note that if your provider return null values, SDK will not start and will retry to get a partner id/private key by calling your provider every 10 sec

Summary

Public Methods
abstract String getPartnerId(Context context)
abstract String getPrivateKey(Context context)

Public Methods

public abstract String getPartnerId (Context context)

public abstract String getPrivateKey (Context context)