AdOverlayInfo.Builder


public final class AdOverlayInfo.Builder


A builder for AdOverlayInfo instances.

Summary

Public constructors

Builder(View view, @AdOverlayInfo.Purpose int purpose)

Creates a new builder.

Public methods

AdOverlayInfo

Returns a new AdOverlayInfo instance with the current builder values.

AdOverlayInfo.Builder

Sets an optional, detailed reason that the view is on top of the player.

Public constructors

Builder

public Builder(View view, @AdOverlayInfo.Purpose int purpose)

Creates a new builder.

Parameters
View view

The view that is overlaying the player.

@AdOverlayInfo.Purpose int purpose

The purpose of the view.

Public methods

build

public AdOverlayInfo build()

Returns a new AdOverlayInfo instance with the current builder values.

setDetailedReason

@CanIgnoreReturnValue
public AdOverlayInfo.Builder setDetailedReason(@Nullable String detailedReason)

Sets an optional, detailed reason that the view is on top of the player.

Returns
AdOverlayInfo.Builder

This builder, for convenience.