MCPcopy Create free account
hub / github.com/android/ndk-samples / notifyCameraPermission

Function notifyCameraPermission

camera/basic/src/main/cpp/camera_ui.cpp:130–134  ·  view source on GitHub ↗

* A couple UI handles ( from UI ) * user camera and disk permission * exposure and sensitivity SeekBars * takePhoto button */

Source from the content-addressed store, hash-verified

128 * takePhoto button
129 */
130void notifyCameraPermission(JNIEnv*, jclass, jboolean permission) {
131 std::thread permissionHandler(&CameraEngine::OnCameraPermission,
132 GetAppEngine(), permission);
133 permissionHandler.detach();
134}
135
136void TakePhoto(JNIEnv*, jclass) {
137 std::thread takePhotoHandler(&CameraEngine::OnTakePhoto, GetAppEngine());

Callers

nothing calls this directly

Calls 1

GetAppEngineFunction · 0.85

Tested by

no test coverage detected