Adobe DPS - Reading SDK 2.32

Class adobeDPS-ApplicationContext

Platforms:
iOS

This class represents the context under which the application is launched

Constructor

adobeDPS-ApplicationContext()
[inner] ApplicationContext class.

Fields

Field Defined By
The external application bundleID used to launch / activate the viewer.
ApplicationContext
urlScheme : String
The viewer URL scheme used to launch / activate the viewer.
ApplicationContext
urlHost : String
The URL host.
ApplicationContext
urlPath : String
The URL path.
ApplicationContext
urlQueryString : Object
The URL query string containing key/value pairs delimited by &.
ApplicationContext
Class Detail
adobeDPS-ApplicationContext()
[inner] ApplicationContext class.
Field Details
sourceApplication : String
The external application bundleID used to launch / activate the viewer. Ex: com.apple.mobilesafari (Safari browser)
 //Sample code to get bundleID.
var sourceAppBundleId = adobeDPS.configurationService.applicationContext.sourceApplication;	
alert(sourceAppBundleId);	//com.apple.mobilesafari
Platforms:
iOS
urlScheme : String
The viewer URL scheme used to launch / activate the viewer.
 //Sample code to get the viewer app URL scheme. Viewer app was created with the URL Scheme, com.adobe.CustomDPSViewer, using the Adobe DPS App Builder.
var appURLScheme = adobeDPS.configurationService.applicationContext.urlScheme;	
alert(appURLScheme);	//com.adobe.CustomDPSViewer
Platforms:
iOS
urlHost : String
The URL host. The value should always be "v1".
Platforms:
iOS
urlPath : String
The URL path. The value should always be "slot/"
Platforms:
iOS
urlQueryString : Object
The URL query string containing key/value pairs delimited by &. This is an object of structure {key:value ...}. It may be undefined as query strings are optional
 //Sample code to get a parameter from the query string, com.adobe.CustomDPSViewer://v1/slot/store?companyName=Adobe
var companyName = adobeDPS.configurationService.applicationContext.urlQueryString.companyName;
alert(companyName);	//Alert box will appear with 'Adobe' in the description
Platforms:
iOS
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 31 2015 09:23:39 GMT-0700 (PDT)