目录

VastApplication

Class Info

public class VastApplication

Global context.

Public Method Summary

Qualifier and Type

Method Name and Description

void

init(Context context, boolean test)

Initializes the global context.

Context

getContext()

Obtains the context of the current page.

Public Methods

[h2]init

Method

public static void init(Context context, boolean test)

Initializes the global context.

Parameters

Name

Description

context

Context of the current page.

test

Indicates whether an ad is a test ad.

  • true: yes
  • false: no

[h2]getContext

Method

public static Context getContext()

Obtains the context of the current page.

Returns

Type

Description

Context

Context of the current page.