PeekAlert
androidJvm
PeekAlert
/
dev.mooner.peekalert
/
PeekAlertBuilder
Peek
Alert
Builder
class
PeekAlertBuilder
(
parentView
:
ViewGroup
,
isMultiWindow
:
Boolean
)
Members
Constructors
Peek
Alert
Builder
Link copied to clipboard
constructor
(
parentView
:
ViewGroup
,
isMultiWindow
:
Boolean
)
Types
Action
Builder
Link copied to clipboard
class
ActionBuilder
(
text
:
String
,
context
:
Context
)
Text
Builder
Link copied to clipboard
class
TextBuilder
(
content
:
String
,
context
:
Context
)
Title
Builder
Link copied to clipboard
class
TitleBuilder
(
content
:
String
,
context
:
Context
)
Functions
action
Link copied to clipboard
fun
action
(
text
:
String
,
block
:
PeekAlertBuilder.ActionBuilder
.
(
)
->
Unit
)
background
Color
Link copied to clipboard
fun
backgroundColor
(
@
ColorRes
res
:
Int
?
=
null
,
@
ColorInt
value
:
Int
?
=
null
)
build
Link copied to clipboard
fun
build
(
)
:
PeekAlert
hide
Link copied to clipboard
fun
hide
(
)
icon
Tint
Link copied to clipboard
fun
iconTint
(
@
ColorRes
res
:
Int
?
=
null
,
@
ColorInt
value
:
Int
?
=
null
)
text
Link copied to clipboard
fun
text
(
content
:
String
,
block
:
PeekAlertBuilder.TextBuilder
.
(
)
->
Unit
=
{}
)
title
Link copied to clipboard
fun
title
(
content
:
String
,
block
:
PeekAlertBuilder.TitleBuilder
.
(
)
->
Unit
=
{}
)
Properties
auto
Hide
Millis
Link copied to clipboard
var
autoHideMillis
:
Long
?
corner
Radius
Link copied to clipboard
var
cornerRadius
:
Float
?
draggable
Link copied to clipboard
var
draggable
:
Boolean
hide
On
Touch
Link copied to clipboard
var
hideOnTouch
:
Boolean
icon
Res
Link copied to clipboard
@
DrawableRes
var
iconRes
:
Int
?
icon
Tint
Link copied to clipboard
@
ColorInt
var
iconTint
:
Int
?
margin
Link copied to clipboard
var
margin
:
Pair
<
Int
?
,
Int
?
>
padding
Dp
Link copied to clipboard
var
paddingDp
:
Int
?
padding
Px
Link copied to clipboard
var
paddingPx
:
Int
?
position
Link copied to clipboard
var
position
:
PeekAlert.Position
width
Link copied to clipboard
var
width
:
Int