GetActions
description the getactions method retrieves experience based actions from the personalization engine using the data provided in the https //developer monetate com/sdks/objects#mdskq it supports both single context and multi context evaluations, depending on the data configured in the https //developer monetate com/sdks/context layer implementation guide#5fc0y method signature getaction method new public void getactions( context context, string\[] actiontypes, boolean includereports, actionscallback callback ) description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) parameter parameter description description context contains all context and event data required for evaluation actiontypes a list of https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereports determines whether reporting data should be returned in the response use true true to include reporting data; use false false otherwise callback returns actions data or error example getaction method new personalization getactions( context, new string\[] { "monetate\ action\ omnichanneljson" }, false, new actionscallback() { @override public void onsuccess(string actions) { system out println("actions data " + actions); } @override public void onerror(exception e) { system out println("error occurred " + e getmessage()); } } ); method signature getaction method new public func getactions(context\ contextobj, arractiontypes \[string], includereporting bool ) > future<\[\[string any]], error> description retrieves experience based actions from the personalization engine using the data provided in the context object parameters (short) parameter parameter description description context contains all context and event data required for evaluation arractiontypes a list of https //developer monetate com/sdks/events action types#6rta6 to be retrieved supports both single and multiple action types includereporting determines whether reporting data should be returned in the response use true true to include reporting data; use false false otherwise future returns actions data or error example getaction method new objpersonalization getactions(context contextobj, arractiontypes \["monetate\ action\ omnichanneljson"], includereporting false) on(success { (actions) in self handleaction(actions actions) }) { err in print(err localizeddescription) }