expand

open fun expand(@Nullable url: String, width: Int, height: Int)

Expands this SASAdView to the specified size and opens url (if not null) in the internal browser

Parameters

url

the url to open in this view's internal browser

width

the new width to expand to

height

the new height to expand to


open fun expand(width: Int, height: Int, lockOrientation: Boolean)

Expands this SASAdView to the specified size and locks activity orientation if specified

Parameters

width

the new width to expand to

height

the new height to expand to

lockOrientation

if true, prevents the activity from rotating


open fun expand(@Nullable url: String, width: Int, height: Int, lockOrientation: Boolean)
open fun expand(@Nullable url: String, width: Int, height: Int, lockOrientation: Boolean, @Nullable forceOrientation: String)

Expands this SASAdView to the specified size and opens url (if not null) in the internal browser, and locks activity orientation if specified

Parameters

url

the url to open in this view's internal browser

width

the new width to expand to

height

the new height to expand to

lockOrientation

if true, prevents the activity from rotating.


open fun expand(@Nullable url: String, width: Int, height: Int, offsetX: Int, offsetY: Int, useExpandPolicy: Boolean, allowOffscreen: Boolean, lockOrientation: Boolean, @Nullable forceOrientation: String, isModal: Boolean)

Expands this SASAdView to the specified size and opens url (if not null) in the internal browser, and locks activity orientation if specified

Parameters

url

the url to open in this view's internal browser

width

the new width to expand to

height

the new height to expand to

lockOrientation

if true, prevents the activity from rotating.

offsetX

horizontal offset to apply when expanding (MRAID 2.0 resize specs)

offsetY

vertical offset to apply when expanding (MRAID 2.0 resize specs)

useExpandPolicy

if true, use expand policy to compute the X,Y coordinates of the expanded view with respect to its collapsed position. If false, anchoring is done from top left corner with offsets (MRAID 2.0)

allowOffscreen

if true, the expand will resize the view to make it fit in the screen