오퍼월 View 타입

View 타입은 별도의 레이아웃을 이용해 AdiSON 오퍼월을 매체 앱 내부에 추가할 수 있는 기능입니다. 이를 통해 매체 앱의 UI에 적합한 오퍼월 화면을 구성할 수 있습니다.

레이아웃 생성

activityLayout = findViewById(R.id.parent_layout)
var ofwListLayout = OfwListLayout(this)  // activity
activityLayout.addView(ofwListLayout);

OfwListLayout을 생성하기 전에 Adison.shared.init 과정을 수행하여야 합니다.

레이아웃 Orientation 설정

View 타입에서도 가로 세로에 적합한 구성을 Orientation을 변경하여 설정할 수 있습니다. 기본으로 세로 모드를 지원합니다.

val config = AdisonConfig()
config.screenOrientation = Orientation.Landscape  // Orientation.Portrait 세로
Adison.setConfig(config)

기타

테마 및 색상 등 기타 설정은 모두 동일합니다. 상세한 내용은

https://github.com/adison-offerwall/adison-offerwall-ios-sample

를 참조하여 주시기 바랍니다.

Last updated