ConsentStatus

class ConsentStatus(var id: String = "")

동의 상태를 나타내는 데이터 클래스

Data class representing a consent status


korean

showConsentMode, showConsentModeIfRequire 실행 후 ConsentModeListener를 통해 전달되는 개별 동의 항목의 결과를 나타내는 클래스입니다.
각 동의 상태에는 다음 정보가 포함됩니다.

  • id: 동의 항목의 고유 식별자.
    큰 범주로 목적(Purpose)에는 ad_user_data, ad_personalization, analytics_storage가 포함됩니다.
    ad_personalization일 경우, 하위 항목(subForms)으로 MMP("google", "adjust", "appsflyer", "singular", "airbridge") 업체가 포함될 수 있습니다.

  • granted: 기기 정보를 Provider와 공유할지 여부.

  • 동의 시 Analytics.CONSENT_GRANTED, 거부 시 Analytics.CONSENT_DENIED

  • consentDate: 사용자가 동의 여부를 결정한 시각 (밀리초 단위)

  • expiredDate: 동의가 만료되는 시각 (밀리초 단위). ConsentForm.retentionPeriod를 consentDate에 더한 값입니다.


english

Class representing the result of a consent item returned via ConsentModeListener after calling showConsentMode or showConsentModeIfRequire.
Each consent status includes the following information:

  • id: Unique identifier of the consent item.
    Main purposes include ad_user_data, ad_personalization, and analytics_storage.
    In the case of ad_personalization, sub-forms may include MMP vendors: "google", "adjust", "appsflyer", "singular", "airbridge".

  • granted: Whether device information is shared with the provider.

  • Analytics.CONSENT_GRANTED if consented, Analytics.CONSENT_DENIED if denied

  • consentDate: The timestamp when consent was decided (milliseconds)

  • expiredDate: The timestamp when consent expires (milliseconds). Calculated as consentDate + ConsentForm.retentionPeriod.

Parameters

id

Unique identifier of the consent item (main purposes: ad_user_data, ad_personalization, analytics_storage. If ad_personalization, subForms may include MMP vendors: "google", "adjust", "appsflyer", "singular", "airbridge")

granted

Whether device information is shared with the provider

consentDate

Timestamp when consent was given (milliseconds)

expiredDate

Timestamp when consent expires (milliseconds)

See also

Constructors

Link copied to clipboard
constructor(id: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var id: String

Functions

Link copied to clipboard
fun consent(retentionPeriod: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setGranted(isGranted: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String