toggle menu
mvvmframe
androidJvm
switch theme
search in API
mvvmframe
/
com.king.frame.mvvmframe.base.controller
/
DefaultDialogController
Default
Dialog
Controller
class
DefaultDialogController
(
context
:
Context
)
:
DialogController
对话框控制器
Author
Jenly
Follow me
Members
Constructors
Default
Dialog
Controller
Link copied to clipboard
constructor
(
context
:
Context
)
Functions
dismiss
Dialog
Link copied to clipboard
open
override
fun
dismissDialog
(
)
open
override
fun
dismissDialog
(
dialog
:
Dialog
?
)
关闭对话框
dismiss
Progress
Dialog
Link copied to clipboard
open
override
fun
dismissProgressDialog
(
)
关闭进度对话框
on
State
Changed
Link copied to clipboard
open
override
fun
onStateChanged
(
source
:
LifecycleOwner
,
event
:
Lifecycle.Event
)
set
Window
Link copied to clipboard
open
override
fun
setWindow
(
window
:
Window
?
,
gravity
:
Int
,
widthRatio
:
Float
,
x
:
Int
,
y
:
Int
,
horizontalMargin
:
Float
,
verticalMargin
:
Float
,
horizontalWeight
:
Float
,
verticalWeight
:
Float
)
设置 Window 布局相关参数
show
Dialog
Link copied to clipboard
open
override
fun
showDialog
(
contentView
:
View
,
@
StyleRes
styleId
:
Int
,
gravity
:
Int
,
widthRatio
:
Float
,
x
:
Int
,
y
:
Int
,
horizontalMargin
:
Float
,
verticalMargin
:
Float
,
horizontalWeight
:
Float
,
verticalWeight
:
Float
,
backCancel
:
Boolean
)
显示对话框
show
Progress
Dialog
Link copied to clipboard
open
override
fun
showProgressDialog
(
layoutId
:
Int
,
cancel
:
Boolean
)
显示进度对话框