Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengaktifkan unit flash perangkat selama sesi AR dapat membantu meningkatkan visibilitas.
Pastikan konfigurasi kamera saat ini mendukung flash
Tidak semua konfigurasi kamera mendukung pengaktifan unit flash.
Sebelum mengaktifkan flash atau menawarkan opsi kepada pengguna untuk mengaktifkan flash,
pastikan unit flash tersedia untuk konfigurasi kamera
aktif:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-05-24 UTC."],[[["Using the device's flash during an AR session can enhance visibility in low-light conditions."],["Before enabling the flash, verify if the active camera configuration supports it by checking the `hasTorch` property of the `AVCaptureDevice`."],["Enable the flash by setting the `torchMode` property of the `AVCaptureDevice` to `AVCaptureTorchModeOn`."],["Disable the flash by setting the `torchMode` property of the `AVCaptureDevice` to `AVCaptureTorchModeOff`."]]],["To utilize the device's flash in an AR session, first verify if the active camera configuration supports it using `device.hasTorch`. If supported, enable the flash by setting `device.torchMode` to `AVCaptureTorchModeOn` after locking the device for configuration. If the camera doesn't support flash, setting `AVCaptureTorchModeOn` will have no effect. To disable it set the `device.torchMode` to `AVCaptureTorchModeOff` and unlock the configuration.\n"]]