The augmented reality view is obviously the main consumption of the BEAR SDK. Therefore methods are provided to pause and resume the augmented reality so you can avoid battery drain when view is not in use:
- ArActivity.pauseArView(): beware that screen will become black because camera is deinitialized
- ArActivity.resumeArView()
Both methods are already handled in ArActivity lifecycle so you don't need to call them from another activity but you can call them from a fragment if needed.
Comments
Please sign in to leave a comment.