Language

KeyedFrequencyCap.Builder(Int32, Int32, Duration) Constructor

Definition

Creates a builder with the counter key, count limit, and counting interval.

[Android.Runtime.Register(".ctor", "(IILjava/time/Duration;)V", "", ApiSince=35)]
public Builder(int adCounterKey, int maxCount, Java.Time.Duration interval);
[<Android.Runtime.Register(".ctor", "(IILjava/time/Duration;)V", "", ApiSince=35)>]
new Android.AdServices.Common.KeyedFrequencyCap.Builder : int * int * Java.Time.Duration -> Android.AdServices.Common.KeyedFrequencyCap.Builder

Parameters

adCounterKey
Int32

The numeric counter key to which the cap applies.

maxCount
Int32

The event count limit, which must be greater than zero.

interval
Duration

The non-null counting interval. Its whole-second value must be greater than zero and at most 100 days.

Attributes

Remarks

The constructor validates the count and interval before storing them. A duration whose whole-second value is zero is not accepted. See the constructor implementation.

Applies to