mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-15 12:53:51 +00:00
16 lines
560 B
Kotlin
16 lines
560 B
Kotlin
|
package dev.inmo.jsuikit.elements
|
||
|
|
||
|
import dev.inmo.jsuikit.modifiers.UIKit
|
||
|
import dev.inmo.jsuikit.types.UIKitNotificationParameter
|
||
|
import dev.inmo.jsuikit.types.NotificationsGroup
|
||
|
import dev.inmo.jsuikit.types.invoke
|
||
|
import dev.inmo.jsuikit.utils.Milliseconds
|
||
|
|
||
|
fun Notification(
|
||
|
message: String,
|
||
|
status: UIKitNotificationParameter.Style? = null,
|
||
|
timeout: Milliseconds? = null,
|
||
|
group: NotificationsGroup? = null,
|
||
|
position: UIKitNotificationParameter.Position? = null
|
||
|
) = UIKit.notification.invoke(message, status, timeout, group, position)
|