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
Public Methods
public
abstract
String
getPartnerId
(Context context)
public
abstract
String
getPrivateKey
(Context context)