NestAdsIndicatorOption
public final class NestAdsIndicatorOption
package com.nestads.sdk.common.nest_ads_indicator광고 상단에 표시되는 NestAds 인디케이터에 대한 옵션을 생성하는 클래스입니다. NestAdsIndicatorOption.Builder 를 통해 생성합니다.
Public Constructors
public constructor NestAdsIndicatorOption(var backgroundColor ...)
매개변수
타입
설명
backgroundColor
String?
인디케이터의 배경 색상
default: #000000
textColor
String?
인디케이터의 텍스트 색상
default: #FFFFFF
borderWidth
Int?
인디케이터의 테두리 두께
default: 0
borderColor
String?
인디케이터의 테두리 색상
default: #000000
opacity
Float?
인디케이터의 투명도
default: 0.7f
Nested Class
NestAdsIndicatorOption 의 Builder 클래스
NestAdsIndicatorOption.Builder
Public Constructors
public constructor Builder()
Public Methods
public final fun setBackgroundColor(backgroundColor: String): NestAdsIndicatorOption.Builder
인디케이터의 배경 색상을 설정합니다. hex code가 아니면 기본값을 설정합니다.
public final fun setTextColor(textColor: String): NestAdsIndicatorOption.Builder
인디케이터의 텍스트 색상을 설정합니다. hex code가 아니면 기본값을 설정합니다.
public final fun setBorderWidth(borderWidth: Int): NestAdsIndicatorOption.Builder
인디케이터의 테두리 두께를 설정합니다. 값은 0과 2 사이로 제한됩니다.
public final fun setBorderColor(borderColor: String): NestAdsIndicatorOption.Builder
인디케이터의 테두리 색상을 설정합니다. hex code가 아니면 기본값을 설정합니다.
public final fun setSize(size: NestAdsIndicatorSize): NestAdsIndicatorOption.Builder
인디케이터의 크기를 설정합니다.
public final fun setOpacity(opacity: Float): NestAdsIndicatorOption.Builder
인디케이터의 투명도를 설정합니다. 값은 0.0과 1.0 사이로 제한됩니다.
public final fun build(): NestAdsIndicatorOption
NestAdsIndicatorOption를 생성합니다.
예제 코드
Last updated