mapResult

fun mapResult(permission: String, granted: Boolean, shouldShowRationale: Boolean, wasRequestedBefore: Boolean, isRestored: Boolean = false): PermissionDecisionType

Maps runtime permission decision into PermissionDecisionType.

런타임 권한 결과를 PermissionDecisionType으로 매핑합니다.

Return

Return value: mapped permission result type. Log behavior: none.

반환값: 매핑된 권한 결과 타입. 로그 동작: 없음.

Parameters

permission

Permission string being evaluated.

평가 중인 권한 문자열입니다.

granted

Whether the platform returned granted = true.

플랫폼이 granted = true로 반환했는지 여부입니다.

shouldShowRationale

Whether rationale UI should be shown now.

현재 설명 UI가 필요한지 여부입니다.

wasRequestedBefore

Whether the permission was requested before.

이전 요청 이력이 있는지 여부입니다.