Nonstop Brightscript SDK
Branding
The Nonstop SDK is able to supply some branding information to the integrating app in order for the app to display information to the user.
An example of obtaining this information is available below:
sub GetMarketingInfo()
promise = invalid
promise = m.global.nonstop.instance.callFunc("getMarketingInfo", {})
promise.observeFieldScoped("data", "onMarketingResponse")
end sub
sub onMarketingResponse(message as Object)
promise = message.getRoSGNode()
if promise.status = 1
' Use promise.data.body.result to access the branding info
else if promise.status = 2
' There was a problem fetching the branding info
end if
promise.unObserveFieldScoped("data")
end sub
At present the marketingInfo object contains the following properties:
howItWorksVideoUrl- link to an MP4 containing the current Nonstop Promo VideolearnMoreUrl- link to the Nonstop FAQs on the Freeform Help sitenonstopHomeUrl- link to the web version of Nonstop HomenonstopHomeUrlDisplay- a user friendly version of the above URL