You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the latest version, this also works for Android, just be sure to set the handleGLSurfaceViewOnAndroid option to true, otherwise the screenshot will just be a fully black image.
Hi,I am trying to take a screenshot but i am getting the following error.
onButtonTap = async () => {
if (!this.state.writeAccessPermission) {
this.requestWriteAccessPermission();
}
try {
await this.ARSceneNav.sceneNavigator.takeScreenshot('kartvya', true).then(result => {
console.log(result.url, 'urlurlurlurlurl');
console.log(result.success, 'successsuccesssuccesssuccesssuccess');
console.log(result.errorCode, 'errorCodeerrorCodeerrorCodeerrorCode');
});
} catch (error) {
console.log(error, 'errorerrorerrorerrorerror');
}
};
<TouchableOpacity
style={{justifyContent: 'center'}}
onPress={this.onButtonTap}>
Capture
The text was updated successfully, but these errors were encountered: