Class AdobePlugin
- java.lang.Object
-
- com.castlabs.android.Plugin
-
- com.castlabs.sdk.adobe.AdobePlugin
-
public class AdobePlugin extends Plugin
Adobe Mobile Services PluginThis plugin integrates Adobe's Mobile Services SDK. Such SDK allows for tracking app navigation events, alongside with video tracking events. This integration takes care of the later of those. The SDK can be used from app code to perform additional operations.
To configure Adobe's SDK, a JSON file with name ADBMobileConfig.json must be included in the application's assets directory. The file contains the information about your Adobe account. At runtime, the Adobe SDK will read such JSON and use its configuration. For more information on how to obtain the configuration JSON please refer to Adobe's documentation.
In order for this plugin to operate, an already configured
MediaSettings
object must be provided at play time.The plugin will not override any of the fields in the MediaSettings, except for the
name
in case it is null.Basic usage of the plugin:
public class MyApp extends Application {
@
Override public void onCreate() { super.onCreate(); // ... AdobePlugin adobe = new AdobePlugin(/*optional boolean for debug logging*\/); PlayerSDK.register(adobe); // ... PlayerSDK.init(getApplicationContext()); } }When starting playback, the
MediaSettings
must be provided in theAnalyticsMetaData
instance passed to thePlayerController.open(Bundle)
method:bundle.putParcelable(SdkConsts.INTENT_ANALYTICS_DATA, AdobePlugin.createMetadata(mediaSettings)); // ... playerController.open(bundle);
- Since:
- 4.2.35
-
-
Constructor Summary
Constructors Constructor Description AdobePlugin()
Same as callingAdobePlugin(boolean)
with false.AdobePlugin(boolean debugLogging)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnalyticsMetaData
createMetadata(com.adobe.mobile.MediaSettings mediaSettings)
Populate or create anAnalyticsMetaData
object from Adobe'sMediaSettings
.static AnalyticsMetaData
createMetadata(com.adobe.mobile.MediaSettings mediaSettings, AnalyticsMetaData analyticsMetaData)
Populate or create anAnalyticsMetaData
object from Adobe'sMediaSettings
.String
getId()
void
init(Context context)
-
Methods inherited from class com.castlabs.android.Plugin
onRemotePlay
-
-
-
-
Constructor Detail
-
AdobePlugin
public AdobePlugin()
Same as callingAdobePlugin(boolean)
with false.
-
AdobePlugin
public AdobePlugin(boolean debugLogging)
- Parameters:
debugLogging
- whether to enabledebugLogging
-
-
Method Detail
-
createMetadata
@NonNull public static AnalyticsMetaData createMetadata(@NonNull com.adobe.mobile.MediaSettings mediaSettings)
Populate or create anAnalyticsMetaData
object from Adobe'sMediaSettings
.- Parameters:
mediaSettings
- MediaSettings to use.- Returns:
- instance of AnalyticsMetaData.
-
createMetadata
@NonNull public static AnalyticsMetaData createMetadata(@NonNull com.adobe.mobile.MediaSettings mediaSettings, @Nullable AnalyticsMetaData analyticsMetaData)
Populate or create anAnalyticsMetaData
object from Adobe'sMediaSettings
.- Parameters:
mediaSettings
- MediaSettings to use.analyticsMetaData
- AnalyticsMetadata which will be used to save the Adobe config. If null, a new AnalyticsMetadata will be created.- Returns:
- instance of AnalyticsMetaData.
-
-