Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate useFront camera property #335

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion appinventor/blocklyeditor/src/versioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,10 @@ Blockly.Versioning.AllUpgradeMaps =
"Camera": {

// AI2: The UseFront property was added.
2: "noUpgrade"
2: "noUpgrade",

// AI2: The UseFront property was deprecated.
3: "noUpgrade"

}, // End Camera upgraders

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Camera(ComponentContainer container) {
*
* @return {@code true} indicates front-facing is to be used, {@code false} will open default
*/
@SimpleProperty(
@SimpleProperty(userVisible = false, /* DEPRECATED MARCH 14 2015, STOPPED WORKING DECEMEBER 2014 */
category = PropertyCategory.BEHAVIOR)
public boolean UseFront() {
return useFront;
Expand All @@ -93,8 +93,8 @@ public boolean UseFront() {
* @param front
* {@code true} for front-facing camera, {@code false} for default
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN, defaultValue = "False")
@SimpleProperty(description = "Specifies whether the front-facing camera should be used (when available). "
@SimpleProperty(userVisible = false, description = "DEPRECATED MARCH 2015, FEATURE NO LONGER AVAILABLE: "
+ "Specifies whether the front-facing camera should be used (when available). "
+ "If the device does not have a front-facing camera, this option will be ignored "
+ "and the camera will open normally.")
public void UseFront(boolean front) {
Expand Down