目录

VastApplication

Class Info

public class VastApplication

全局上下文。

Public Method Summary

Qualifier and Type

Method Name and Description

void

init(Context context, boolean test)

初始化全局上下文。

Context

getContext()

获取当前页面的上下文。

Public Methods

[h2]init

Method

public static void init(Context context, boolean test)

初始化全局上下文。

Parameters

Name

Description

context

页面上下文。

test

是否为测试广告:

  • true:是
  • false:否

[h2]getContext

Method

public static Context getContext()

获取当前页面的上下文。

Returns

Type

Description

Context

当前页面的上下文。