Class BlocksInfoRequest.Builder

com.yandex.mobile.ads.video

public class BlocksInfoRequest.Builder

Class for creating a BlocksInfoRequest object.

Methods

Builder(@NonNull final Context context, @NonNull final String partnerId, @Nullable final RequestListener< BlocksInfo > requestListener)

Creates a new object of the BlocksInfoRequest.Builder class to construct BlocksInfoRequest.

BlocksInfoRequest build()

Creates a new object of the BlocksInfoRequest class.

Builder setCategory(@NonNull final String categoryId)

Sets the ID of the site category.

Method Detail

Builder

public Builder (@NonNull final Context context, @NonNull final String partnerId, @Nullable final RequestListener< BlocksInfo > requestListener)

Creates a new object of the BlocksInfoRequest.Builder class to construct BlocksInfoRequest.

Parameters:
context

An object of the Context system class.

partnerId

Partner ID.

requestListener

An object of the RequestListener class.

Throws:

NullPointerException

An empty context or the null value is set.

build

public BlocksInfoRequest build ()

Creates a new object of the BlocksInfoRequest class.

Returns:

An object of the BlocksInfoRequest class.

setCategory

public Builder setCategory (@NonNull final String categoryId)

Sets the ID of the site category.

Parameters:
categoryId

ID of the site category. The client can create a new category in the admin panel. The default value is 0.

Returns:

An object of the BlocksInfoRequest.Builder class.