설정 적용
오퍼월 표시와 관련된 설정은 AdisonConfig
를 통해 적용합니다.
let config = AdisonConfig()
config.infoBarHidden = true // 상단 정보창 숨기 (기본값: false)
config.offerwallListTitle = "오퍼월 테스트" // 목록화면 네비게이션 타이틀 (기본값: 오퍼월)
Adison.shared.config = config
속성
내용
기본값
prepareViewHidden
스플래시 숨김
false
infoBarHidden
상단 정보창 숨김
false
offerwallListTitle
목상 상단 타이틀
"오퍼월"
screenOrientation
목록 및 상세 화면 방향
e.g., [ .portrait, .landscape ]
.landscape
가로화면
config.screenOrientation = .landscape
가로 화면을 설정한 경우 아래와 같이 표시됩니다.


스플래시
스플래시 하단에 이미지를 포함시킬 경우 config.prepareViewImages
에 이미지를 설정합니다.
let splashImage = UIImage(named: "splash.jpg", in: Bundle.main, compatibleWith: nil)!
config.prepareViewImages = [ splashImage ]
애니메이션이 필요한 경우 UIImage의 배열 직접 전달하여 적용 가능합니다.
let splashImages = (1...17).map { UIImage(named: String(format: "cookies_%02d.jpg", $0), in: Bundle.main, compatibleWith: nil)! }
config.prepareViewImages = splashImages
스플래시 커스텀
스플래시 화면을 직접 제작하는 경우, PrepareView 추상 클래스를 직접 구현합니다.
typealias PrepareView = UIView & RewardDisplayable
public protocol RewardDisplayable: class {
func setAvailableReward(name: String, unit: String, points: Int)
}
이후 직접 구현한 PrepareView를 config에 적용합니다.
config.prepareViewClass = AdisonPrepareView.self
Last updated
Was this helpful?