Retrieving a Power Hook Value

Select your preferred platform/plugin for our sample code:

The getValueForHookById method retrieves the value of a Power Hook from TUNE. This method returns the value specified in the In-App Marketing platform, or the default value if none has been specified.

Select a preferred platform.

Select a preferred platform.

Tip: Each time your code passes over a getValueForHookById method call, the most recently downloaded value to the user’s device will be referenced. If you do not want the value to change during the lifecycle of the object, then you can assign the value to a property or member variable in the object’s constructor.

No Comments

Leave a reply