iOS Limited Photos Permission(iOS 14 μ΄μ)
Delivering an Enhanced Privacy Experience in Your Photos App | Apple Developer Documentation
Adopt the latest privacy enhancements to deliver advanced user-privacy controls.
developer.apple.com
// Request read-write access to the user's photo library.
PHPhotoLibrary.requestAuthorization(for: .readWrite) { status in
switch status {
case .notDetermined:
// The user hasn't determined this app's access.
case .restricted:
// The system restricted this app's access.
case .denied:
// The user explicitly denied this app's access.
case .authorized:
// The user authorized this app to access Photos data.
case .limited:
// The user authorized this app for limited Photos access.
@unknown default:
fatalError()
}
}
*μ°Έκ³ λ‘ iOS PHAutorizationStatus κ°μ int λ‘ λ°ννλλ°, μμ κ°μ΄ 0 ~ 4λ‘ λ΄λ €μ¨λ€.
iOS 14 μ΄μ λΆν° μ νν μ¬μ§λ§ μ κ·Ό κ°λ₯ν κΆνμ΄ μΆκ°λμλ€. limited !
UnityNativeGallery κΉνλΈ μ€νμμ€μ PHAuthorizationStatusLimited κΆνμ λν λ΄μ©μ΄ λͺ μλμ΄ μμ§ μμλ€.
μ¦ limited κΆνμ μ£Όλ©΄ κΆνμ λ€μ μμ²νκ±°λ κΆνμ΄ μλ€κ³ νλ¨νλ μ½λκ° μ νμμ§ μμλ€.
μ΄μκ° λ°μν μ±μ μ νν μ¬μ§λ§ μ κ·Ό κ°λ₯μΌλ‘ 체ν¬ν΄λ μ±μ΄ λμ κ°λ₯ν μ±μ΄μλ€.
ios κ°€λ¬λ¦¬ κΆν μ²΄ν¬ μ limited κΆνμ λν μμΈμ²λ¦¬λ₯Ό μΆκ°νκ³ limited κΆνμ΄λΌλ μμΌλ©΄ ν΄λΉ μ±μμ μ¬μ§κΆνμ λ€μ λ¬Όμ΄λ³΄μ§ μκ³ μ μ μ§ννκ² νλ€.