AgeRestrictedTreatment

public enum AgeRestrictedTreatment


傳遞至 setAgeRestrictedTreatment 的年齡限制處理列舉選項。

摘要

列舉值

CHILD

指出廣告請求應採用兒童年齡處理方式。

TEEN

指出廣告請求應套用青少年年齡處理方式。

UNSPECIFIED

表示廣告請求不適用任何特定年齡限制處理信號。

公開欄位

final int

公用方法

int

傳回年齡限制處理方式的整數值。

static AgeRestrictedTreatment

傳回具指定名稱的這類列舉常數。

static AgeRestrictedTreatment[]

傳回內含這個列舉類型常數的陣列 (按常數宣告順序)。

列舉值

CHILD

AgeRestrictedTreatment AgeRestrictedTreatment.CHILD

指出廣告請求應採用兒童年齡處理方式。

TEEN

AgeRestrictedTreatment AgeRestrictedTreatment.TEEN

指出廣告請求應套用青少年年齡處理方式。

未指定

AgeRestrictedTreatment AgeRestrictedTreatment.UNSPECIFIED

表示廣告請求不適用任何特定年齡限制處理信號。

公開欄位

值

public final int value

公用方法

getValue

public int getValue()

傳回年齡限制處理方式的整數值。

valueOf

public static AgeRestrictedTreatment valueOf(String name)

傳回具指定名稱的這類列舉常數。字串須與用來宣告這類列舉常數的 ID 完全一致 (不允許多餘的空白字元)。

傳回
AgeRestrictedTreatment

含指定名稱的列舉常數

擲回
java.lang.IllegalArgumentException

如果這個列舉類型沒有含指定名稱的常數

值

public static AgeRestrictedTreatment[] values()

傳回內含這個列舉類型常數的陣列 (按常數宣告順序)。這個方法可用於疊代處理常數。

傳回
AgeRestrictedTreatment[]

內含這個列舉類型常數的陣列 (按常數宣告順序)