From e184294c348a01371bf44f6bf82bf677fa3ba683 Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 17 Jul 2024 11:31:55 -0400 Subject: [PATCH 1/7] add expanded FF props for wrappers --- .../platform_wide/feature_flags/create.md | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index 8158af6923a..5285f3b6ee8 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -354,7 +354,7 @@ val numberProperty: Number? = featureFlag.getNumberProperty("height") // returns the property as a nullable long in milliseconds val timestampProperty: Long? = featureFlag.getTimestampProperty("account_start") // returns the property as a string of the image URL -val String imageProperty: String? = featureFlag.getImageProperty("homepage_icon") +val imageProperty: String? = featureFlag.getImageProperty("homepage_icon") // returns the property as a JSON Object val jsonObjectProperty: JSONObject? = featureFlag.getJSONProperty("footer_settings") ``` @@ -369,6 +369,12 @@ const stringProperty = await Braze.getFeatureFlagStringProperty("expanded_user_p const booleanProperty = await Braze.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); // Number properties const numberProperty = await Braze.getFeatureFlagNumberProperty("expanded_user_profile", "height"); +// returns the property as a nullable long in milliseconds +const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); +// returns the property as a string of the image URL +const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); +// returns the property as a JSON Object +const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` {% endtab %} @@ -385,7 +391,14 @@ var booleanProperty = featureFlag.getBooleanProperty("expanded"); var integerProperty = featureFlag.getIntegerProperty("height"); // Number property as double var doubleProperty = featureFlag.getDoubleProperty("height"); +// returns the property as a nullable long in milliseconds +var timestampProperty = featureFlag.getTimestampProperty("account_start"); +// returns the property as a string of the image URL +var imageProperty = featureFlag.imageProperty("homepage_icon"); +// returns the property as a JSON Object +var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` + {% endtab %} {% tab Cordova %} @@ -396,9 +409,17 @@ const stringProperty = await BrazePlugin.getFeatureFlagStringProperty("expanded_ const booleanProperty = await BrazePlugin.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); // Number properties const numberProperty = await BrazePlugin.getFeatureFlagNumberProperty("expanded_user_profile", "height"); +// returns the property as a nullable long in milliseconds +const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); +// returns the property as a string of the image URL +const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); +// returns the property as a JSON Object +const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` + {% endtab %} {% tab Flutter %} + ```dart BrazeFeatureFlag featureFlag = await braze.getFeatureFlagByID("expanded_user_profile"); // String properties @@ -407,9 +428,17 @@ var stringProperty = featureFlag.getStringProperty("color"); var booleanProperty = featureFlag.getBooleanProperty("expanded"); // Number properties var numberProperty = featureFlag.getNumberProperty("height"); +// returns the property as a nullable long in milliseconds +var timestampProperty = featureFlag.getTimestampProperty("account_start"); +// returns the property as a string of the image URL +var imageProperty = featureFlag.getImageProperty("homepage_icon"); +// returns the property as a JSON Object +var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` + {% endtab %} {% tab Roku %} + ```brightscript ' String properties color = featureFlag.getStringProperty("color") @@ -417,7 +446,14 @@ color = featureFlag.getStringProperty("color") expanded = featureFlag.getBooleanProperty("expanded") ' Number properties height = featureFlag.getNumberProperty("height") +' returns the property as a nullable long in milliseconds +account_start = featureFlag.getTimestampProperty("account_start") +' returns the property as a string of the image URL +homepage_icon = featureFlag.getImageProperty("homepage_icon") +' returns the property as a JSON Object +footer_settings = featureFlag.getJSONProperty("footer_settings") ``` + {% endtab %} {% endtabs %} From cfe47c4c95ab5b82c331cb711b4414bbe5d8a4bb Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 17 Jul 2024 12:11:04 -0400 Subject: [PATCH 2/7] update comments --- .../platform_wide/feature_flags/create.md | 173 ++++++++++++------ 1 file changed, 113 insertions(+), 60 deletions(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index 5285f3b6ee8..ebc11940d0d 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -283,19 +283,25 @@ If a feature flag is not enabled, or a property you reference does not exist, th {% tab JavaScript %} ```javascript -// Feature flag instance +// Returns the Feature Flag instance const featureFlag = braze.getFeatureFlag("expanded_user_profile"); -// String properties + +// Returns the property as a String const stringProperty = featureFlag.getStringProperty("color"); -// Boolean properties + +// Returns the property as a boolean const booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Number properties + +// Returns the property as a number const numberProperty = featureFlag.getNumberProperty("height"); -// returns the property as a number in milliseconds + +// Returns the property as a number in milliseconds const timestampProperty = featureFlag.getTimestampProperty("account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL const imageProperty = featureFlag.getImageProperty("homepage_icon"); -// returns the JSON property as as JSON object + +// Returns the property as a JSON Object const jsonProperty = featureFlag.getJsonProperty("footer_settings"); ``` @@ -303,19 +309,25 @@ const jsonProperty = featureFlag.getJsonProperty("footer_settings"); {% tab Swift %} ```swift -// Feature flag instance +// Returns the Feature Flag instance let featureFlag: FeatureFlag = braze.featureFlags.featureFlag(id: "expanded_user_profile") -// String properties + +// Returns the property as a String let stringProperty: String? = featureFlag.stringProperty(key: "color") -// Boolean properties + +// Returns the property as a boolean let booleanProperty: Bool? = featureFlag.boolProperty(key: "expanded") -// Number properties + +// Returns the property as a number let numberProperty: Double? = featureFlag.numberProperty(key: "height") -// returns the property as a TimeInterval in milliseconds + +// Returns the property as a TimeInterval in milliseconds let timestampProperty : Int? = featureFlag.timestampProperty(key: "account_start") -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL let imageProperty : String? = featureFlag.imageProperty(key: "homepage_icon") -// returns the property as a [String: Any] dictionary + +// Returns the property as a [String: Any] dictionary let jsonObjectProperty : [String: Any]? = featureFlag.jsonObjectProperty(key: "footer_settings") ``` @@ -323,19 +335,25 @@ let jsonObjectProperty : [String: Any]? = featureFlag.jsonObjectProperty(key: "f {% tab Java %} ```java -// Feature flag instance +// Returns the Feature Flag instance FeatureFlag featureFlag = braze.getFeatureFlag("expanded_user_profile"); -// String properties + +// Returns the property as a String String stringProperty = featureFlag.getStringProperty("color"); -// Boolean properties + +// Returns the property as a boolean Boolean booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Number properties + +// Returns the property as a number Number numberProperty = featureFlag.getNumberProperty("height"); -// returns the property as a nullable long in milliseconds + +// Returns the property as a nullable long in milliseconds Long timestampProperty = featureFlag.getTimestampProperty("account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL String imageProperty = featureFlag.getImageProperty("homepage_icon"); -// returns the property as a JSON Object + +// Returns the property as a JSONObject JSONObject jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -343,19 +361,25 @@ JSONObject jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); {% tab Kotlin %} ```kotlin -// feature flag instance +// Returns the Feature Flag instance val featureFlag = braze.getFeatureFlag("expanded_user_profile") -// string properties + +// Returns the property as a String val stringProperty: String? = featureFlag.getStringProperty("color") -// boolean properties + +// Returns the property as a boolean val booleanProperty: Boolean? = featureFlag.getBooleanProperty("expanded") -// number properties + +// Returns the property as a number val numberProperty: Number? = featureFlag.getNumberProperty("height") -// returns the property as a nullable long in milliseconds + +// Returns the property as a nullable long in milliseconds val timestampProperty: Long? = featureFlag.getTimestampProperty("account_start") -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL val imageProperty: String? = featureFlag.getImageProperty("homepage_icon") -// returns the property as a JSON Object + +// Returns the property as a JSONObject val jsonObjectProperty: JSONObject? = featureFlag.getJSONProperty("footer_settings") ``` @@ -363,17 +387,22 @@ val jsonObjectProperty: JSONObject? = featureFlag.getJSONProperty("footer_settin {% tab React Native %} ```javascript -// String properties +// Returns the property as a String const stringProperty = await Braze.getFeatureFlagStringProperty("expanded_user_profile", "color"); -// Boolean properties + +// Returns the property as a boolean const booleanProperty = await Braze.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); -// Number properties + +// Returns the property as a number const numberProperty = await Braze.getFeatureFlagNumberProperty("expanded_user_profile", "height"); -// returns the property as a nullable long in milliseconds + +// Returns the property as a number in milliseconds const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); -// returns the property as a JSON Object + +// Returns the property as an object const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` @@ -381,21 +410,28 @@ const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user {% tab Unity %} ```csharp -// Feature flag instance +// Returns the Feature Flag instance var featureFlag = Appboy.AppboyBinding.GetFeatureFlag("expanded_user_profile"); -// String properties + +// Returns the property as a String var stringProperty = featureFlag.getStringProperty("color"); -// Boolean properties + +// Returns the property as a boolean var booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Number property as integer + +// Returns the property as an integer var integerProperty = featureFlag.getIntegerProperty("height"); -// Number property as double + +// Returns the property as a double var doubleProperty = featureFlag.getDoubleProperty("height"); -// returns the property as a nullable long in milliseconds + +// Returns the property as a nullable long in milliseconds var timestampProperty = featureFlag.getTimestampProperty("account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL var imageProperty = featureFlag.imageProperty("homepage_icon"); -// returns the property as a JSON Object + +// Returns the property as a JSONObject var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -403,17 +439,22 @@ var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); {% tab Cordova %} ```javascript -// String properties +// Returns the property as a String const stringProperty = await BrazePlugin.getFeatureFlagStringProperty("expanded_user_profile", "color"); -// Boolean properties + +// Returns the property as a boolean const booleanProperty = await BrazePlugin.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); -// Number properties + +// Returns the property as a number const numberProperty = await BrazePlugin.getFeatureFlagNumberProperty("expanded_user_profile", "height"); -// returns the property as a nullable long in milliseconds + +// Returns the property as a number in milliseconds const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); -// returns the property as a JSON Object + +// Returns the property as an object const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` @@ -421,18 +462,25 @@ const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user {% tab Flutter %} ```dart +// Returns the Feature Flag instance BrazeFeatureFlag featureFlag = await braze.getFeatureFlagByID("expanded_user_profile"); -// String properties + +// Returns the property as a String var stringProperty = featureFlag.getStringProperty("color"); -// Boolean properties + +// Returns the property as a boolean var booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Number properties + +// Returns the property as a number var numberProperty = featureFlag.getNumberProperty("height"); -// returns the property as a nullable long in milliseconds + +// Returns the property as an integer in milliseconds var timestampProperty = featureFlag.getTimestampProperty("account_start"); -// returns the property as a string of the image URL + +// Returns the property as a String of the image URL var imageProperty = featureFlag.getImageProperty("homepage_icon"); -// returns the property as a JSON Object + +// Returns the property as a Map collection var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -440,17 +488,22 @@ var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); {% tab Roku %} ```brightscript -' String properties +' Returns a String property color = featureFlag.getStringProperty("color") -' Boolean properties + +' Returns a boolean property expanded = featureFlag.getBooleanProperty("expanded") -' Number properties + +' Returns a number property height = featureFlag.getNumberProperty("height") -' returns the property as a nullable long in milliseconds + +' Returns a timestamp property in milliseconds account_start = featureFlag.getTimestampProperty("account_start") -' returns the property as a string of the image URL + +' Returns a String property of the image URL homepage_icon = featureFlag.getImageProperty("homepage_icon") -' returns the property as a JSON Object + +' Returns a JSON Object property footer_settings = featureFlag.getJSONProperty("footer_settings") ``` From 0d0e5af4331518a5e2bbbc531862d83bfde4d1bd Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 17 Jul 2024 12:17:31 -0400 Subject: [PATCH 3/7] edit --- .../_developer_guide/platform_wide/feature_flags/create.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index ebc11940d0d..30be89b41d4 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -449,13 +449,13 @@ const booleanProperty = await BrazePlugin.getFeatureFlagBooleanProperty("expande const numberProperty = await BrazePlugin.getFeatureFlagNumberProperty("expanded_user_profile", "height"); // Returns the property as a number in milliseconds -const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); +const timestampProperty = await BrazePlugin.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); // Returns the property as a String of the image URL -const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); +const imageProperty = await BrazePlugin.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); // Returns the property as an object -const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); +const jsonObjectProperty = await BrazePlugin.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` {% endtab %} From 844d9457aa6a7309ecb13dd1a8d3963f7c08291a Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 17 Jul 2024 13:00:23 -0400 Subject: [PATCH 4/7] edit comments --- .../platform_wide/feature_flags/create.md | 110 +++++++++--------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index 30be89b41d4..b9aece97af9 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -286,22 +286,22 @@ If a feature flag is not enabled, or a property you reference does not exist, th // Returns the Feature Flag instance const featureFlag = braze.getFeatureFlag("expanded_user_profile"); -// Returns the property as a String +// Returns the String property const stringProperty = featureFlag.getStringProperty("color"); -// Returns the property as a boolean +// Returns the boolean property const booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Returns the property as a number +// Returns the number property const numberProperty = featureFlag.getNumberProperty("height"); -// Returns the property as a number in milliseconds +// Returns the Unix UTC millisecond timestamp property as a number const timestampProperty = featureFlag.getTimestampProperty("account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL const imageProperty = featureFlag.getImageProperty("homepage_icon"); -// Returns the property as a JSON Object +// Returns the JSON object property as a FeatureFlagJsonPropertyValue const jsonProperty = featureFlag.getJsonProperty("footer_settings"); ``` @@ -312,22 +312,22 @@ const jsonProperty = featureFlag.getJsonProperty("footer_settings"); // Returns the Feature Flag instance let featureFlag: FeatureFlag = braze.featureFlags.featureFlag(id: "expanded_user_profile") -// Returns the property as a String +// Returns the String property let stringProperty: String? = featureFlag.stringProperty(key: "color") -// Returns the property as a boolean +// Returns the boolean property let booleanProperty: Bool? = featureFlag.boolProperty(key: "expanded") -// Returns the property as a number +// Returns the number property as a double let numberProperty: Double? = featureFlag.numberProperty(key: "height") -// Returns the property as a TimeInterval in milliseconds +// Returns the Unix UTC millisecond timestamp property as an integer let timestampProperty : Int? = featureFlag.timestampProperty(key: "account_start") -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL let imageProperty : String? = featureFlag.imageProperty(key: "homepage_icon") -// Returns the property as a [String: Any] dictionary +// Returns the JSON object property as a [String: Any] dictionary let jsonObjectProperty : [String: Any]? = featureFlag.jsonObjectProperty(key: "footer_settings") ``` @@ -338,22 +338,22 @@ let jsonObjectProperty : [String: Any]? = featureFlag.jsonObjectProperty(key: "f // Returns the Feature Flag instance FeatureFlag featureFlag = braze.getFeatureFlag("expanded_user_profile"); -// Returns the property as a String +// Returns the String property String stringProperty = featureFlag.getStringProperty("color"); -// Returns the property as a boolean +// Returns the boolean property Boolean booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Returns the property as a number +// Returns the number property Number numberProperty = featureFlag.getNumberProperty("height"); -// Returns the property as a nullable long in milliseconds +// Returns the Unix UTC millisecond timestamp property as a long Long timestampProperty = featureFlag.getTimestampProperty("account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL String imageProperty = featureFlag.getImageProperty("homepage_icon"); -// Returns the property as a JSONObject +// Returns the JSON object property as a JSONObject JSONObject jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -364,22 +364,22 @@ JSONObject jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); // Returns the Feature Flag instance val featureFlag = braze.getFeatureFlag("expanded_user_profile") -// Returns the property as a String +// Returns the String property val stringProperty: String? = featureFlag.getStringProperty("color") -// Returns the property as a boolean +// Returns the boolean property val booleanProperty: Boolean? = featureFlag.getBooleanProperty("expanded") -// Returns the property as a number +// Returns the number property val numberProperty: Number? = featureFlag.getNumberProperty("height") -// Returns the property as a nullable long in milliseconds +// Returns the Unix UTC millisecond timestamp property as a long val timestampProperty: Long? = featureFlag.getTimestampProperty("account_start") -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL val imageProperty: String? = featureFlag.getImageProperty("homepage_icon") -// Returns the property as a JSONObject +// Returns the JSON object property as a JSONObject val jsonObjectProperty: JSONObject? = featureFlag.getJSONProperty("footer_settings") ``` @@ -387,22 +387,22 @@ val jsonObjectProperty: JSONObject? = featureFlag.getJSONProperty("footer_settin {% tab React Native %} ```javascript -// Returns the property as a String +// Returns the String property const stringProperty = await Braze.getFeatureFlagStringProperty("expanded_user_profile", "color"); -// Returns the property as a boolean +// Returns the boolean property const booleanProperty = await Braze.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); -// Returns the property as a number +// Returns the number property const numberProperty = await Braze.getFeatureFlagNumberProperty("expanded_user_profile", "height"); -// Returns the property as a number in milliseconds +// Returns the Unix UTC millisecond timestamp property as a number const timestampProperty = await Braze.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL const imageProperty = await Braze.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); -// Returns the property as an object +// Returns the JSON object property as an object const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` @@ -413,25 +413,25 @@ const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user // Returns the Feature Flag instance var featureFlag = Appboy.AppboyBinding.GetFeatureFlag("expanded_user_profile"); -// Returns the property as a String +// Returns the String property var stringProperty = featureFlag.getStringProperty("color"); -// Returns the property as a boolean +// Returns the boolean property var booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Returns the property as an integer +// Returns the number property as an integer var integerProperty = featureFlag.getIntegerProperty("height"); -// Returns the property as a double +// Returns the number property as a double var doubleProperty = featureFlag.getDoubleProperty("height"); -// Returns the property as a nullable long in milliseconds +// Returns the Unix UTC millisecond timestamp property as a long var timestampProperty = featureFlag.getTimestampProperty("account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL var imageProperty = featureFlag.imageProperty("homepage_icon"); -// Returns the property as a JSONObject +// Returns the JSON object property as a JSONObject var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -439,22 +439,22 @@ var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); {% tab Cordova %} ```javascript -// Returns the property as a String +// Returns the String property const stringProperty = await BrazePlugin.getFeatureFlagStringProperty("expanded_user_profile", "color"); -// Returns the property as a boolean +// Returns the boolean property const booleanProperty = await BrazePlugin.getFeatureFlagBooleanProperty("expanded_user_profile", "expanded"); -// Returns the property as a number +// Returns the number property const numberProperty = await BrazePlugin.getFeatureFlagNumberProperty("expanded_user_profile", "height"); -// Returns the property as a number in milliseconds +// Returns the Unix UTC millisecond timestamp property as a number const timestampProperty = await BrazePlugin.getFeatureFlagTimestampProperty("expanded_user_profile", "account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL const imageProperty = await BrazePlugin.getFeatureFlagImageProperty("expanded_user_profile", "homepage_icon"); -// Returns the property as an object +// Returns the JSON object property as an object const jsonObjectProperty = await BrazePlugin.getFeatureFlagJSONProperty("expanded_user_profile", "footer_settings"); ``` @@ -465,22 +465,22 @@ const jsonObjectProperty = await BrazePlugin.getFeatureFlagJSONProperty("expande // Returns the Feature Flag instance BrazeFeatureFlag featureFlag = await braze.getFeatureFlagByID("expanded_user_profile"); -// Returns the property as a String +// Returns the String property var stringProperty = featureFlag.getStringProperty("color"); -// Returns the property as a boolean +// Returns the boolean property var booleanProperty = featureFlag.getBooleanProperty("expanded"); -// Returns the property as a number +// Returns the number property var numberProperty = featureFlag.getNumberProperty("height"); -// Returns the property as an integer in milliseconds +// Returns the Unix UTC millisecond timestamp property as an integer var timestampProperty = featureFlag.getTimestampProperty("account_start"); -// Returns the property as a String of the image URL +// Returns the image property as a String of the image URL var imageProperty = featureFlag.getImageProperty("homepage_icon"); -// Returns the property as a Map collection +// Returns the JSON object property as a Map collection var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); ``` @@ -488,22 +488,22 @@ var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); {% tab Roku %} ```brightscript -' Returns a String property +' Returns the String property color = featureFlag.getStringProperty("color") -' Returns a boolean property +' Returns the boolean property expanded = featureFlag.getBooleanProperty("expanded") -' Returns a number property +' Returns the number property height = featureFlag.getNumberProperty("height") -' Returns a timestamp property in milliseconds +' Returns the Unix UTC millisecond timestamp property account_start = featureFlag.getTimestampProperty("account_start") -' Returns a String property of the image URL +' Returns the image property as a String of the image URL homepage_icon = featureFlag.getImageProperty("homepage_icon") -' Returns a JSON Object property +' Returns the JSON object property footer_settings = featureFlag.getJSONProperty("footer_settings") ``` From 954057d5ba41be1c1cb5a2def34c1b0dec0065d5 Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 17 Jul 2024 13:28:17 -0400 Subject: [PATCH 5/7] Update Unity getImageProperty Co-authored-by: Jeriel Ng --- _docs/_developer_guide/platform_wide/feature_flags/create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index b9aece97af9..0ee5ac6b321 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -429,7 +429,7 @@ var doubleProperty = featureFlag.getDoubleProperty("height"); var timestampProperty = featureFlag.getTimestampProperty("account_start"); // Returns the image property as a String of the image URL -var imageProperty = featureFlag.imageProperty("homepage_icon"); +var imageProperty = featureFlag.getImageProperty("homepage_icon"); // Returns the JSON object property as a JSONObject var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); From 1b3c1ebd99ac62c1caef14c2787619991645a9f1 Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 31 Jul 2024 15:11:27 -0400 Subject: [PATCH 6/7] pascal case for expanded ff props --- .../_developer_guide/platform_wide/feature_flags/create.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index 0ee5ac6b321..4824b4c2b35 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -426,13 +426,13 @@ var integerProperty = featureFlag.getIntegerProperty("height"); var doubleProperty = featureFlag.getDoubleProperty("height"); // Returns the Unix UTC millisecond timestamp property as a long -var timestampProperty = featureFlag.getTimestampProperty("account_start"); +var timestampProperty = featureFlag.GetTimestampProperty("account_start"); // Returns the image property as a String of the image URL -var imageProperty = featureFlag.getImageProperty("homepage_icon"); +var imageProperty = featureFlag.GetImageProperty("homepage_icon"); // Returns the JSON object property as a JSONObject -var jsonObjectProperty = featureFlag.getJSONProperty("footer_settings"); +var jsonObjectProperty = featureFlag.GetJSONProperty("footer_settings"); ``` {% endtab %} From b363603a68c9744a6276e7c8fe83f64cf9321a94 Mon Sep 17 00:00:00 2001 From: Vanessa Landayan Date: Wed, 14 Aug 2024 12:12:58 -0400 Subject: [PATCH 7/7] use camelcase for existing ff props too --- .../platform_wide/feature_flags/create.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_docs/_developer_guide/platform_wide/feature_flags/create.md b/_docs/_developer_guide/platform_wide/feature_flags/create.md index 4824b4c2b35..a9b08403392 100644 --- a/_docs/_developer_guide/platform_wide/feature_flags/create.md +++ b/_docs/_developer_guide/platform_wide/feature_flags/create.md @@ -414,16 +414,16 @@ const jsonObjectProperty = await Braze.getFeatureFlagJSONProperty("expanded_user var featureFlag = Appboy.AppboyBinding.GetFeatureFlag("expanded_user_profile"); // Returns the String property -var stringProperty = featureFlag.getStringProperty("color"); +var stringProperty = featureFlag.GetStringProperty("color"); // Returns the boolean property -var booleanProperty = featureFlag.getBooleanProperty("expanded"); +var booleanProperty = featureFlag.GetBooleanProperty("expanded"); // Returns the number property as an integer -var integerProperty = featureFlag.getIntegerProperty("height"); +var integerProperty = featureFlag.GetIntegerProperty("height"); // Returns the number property as a double -var doubleProperty = featureFlag.getDoubleProperty("height"); +var doubleProperty = featureFlag.GetDoubleProperty("height"); // Returns the Unix UTC millisecond timestamp property as a long var timestampProperty = featureFlag.GetTimestampProperty("account_start");