Created
December 1, 2019 00:38
-
-
Save yearofthewhopper/fef7e5341e821ca125584f349855df5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CameraInfo = require('CameraInfo'); | |
const D = require('Diagnostics'); | |
CameraInfo.captureDevicePosition.monitor({fireOnInitialValue: true}).subscribe( function(e) { | |
D.log(e.newValue); | |
//Your IF statement can go here. | |
//Use if(e.newValue == "BACK"), etc | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.facebook.com/groups/SparkARcommunity/permalink/635184330226946/