Companion

object Companion

Functions

Link copied to clipboard
fun Browser(url: URL, type: NavigationSpec.Browser.Type = NavigationSpec.Browser.Type.Normal): ComposableNavSpec.IntentLauncher

Creates a ComposableNavSpec.IntentLauncher to the browser.

Link copied to clipboard

Creates a ComposableNavSpec.Launcher to open the camera to capture a video.

Link copied to clipboard
inline fun <ViewModel : BaseLifecycleViewModel> CreateDocument(fileName: String, mimeType: String, noinline onResult: ViewModel.(Uri?) -> Unit): ComposableNavSpec.Launcher<ViewModel, String, Uri?>

Creates a ComposableNavSpec.Launcher to open create a new file.

Link copied to clipboard

Creates a ComposableNavSpec.Launcher to open the file manager app to pick a file.

Link copied to clipboard
inline fun <ViewModel : BaseLifecycleViewModel> OpenDocumentTree(startingLocation: Uri? = null, noinline onResult: ViewModel.(Uri?) -> Unit): ComposableNavSpec.Launcher<ViewModel, Uri?, Uri?>

Creates a ComposableNavSpec.Launcher to open the file manager app to pick a folder.

Link copied to clipboard

Creates a ComposableNavSpec.Launcher to open the file manager app to pick a number of files.

Link copied to clipboard
Link copied to clipboard

Creates a ComposableNavSpec.Launcher to open the contacts list to select a contact.

Link copied to clipboard
inline fun <ViewModel : BaseLifecycleViewModel> PickMultipleVisualMedia(maxItems: Int? = null, type: ActivityResultContracts.PickVisualMedia.VisualMediaType = ActivityResultContracts.PickVisualMedia.ImageAndVideo, noinline onResult: ViewModel.(List<Uri>) -> Unit): ComposableNavSpec.Launcher<ViewModel, PickVisualMediaRequest, List<Uri>>

Creates a ComposableNavSpec.Launcher to open Photo app to pick a number of images or videos

Link copied to clipboard
inline fun <ViewModel : BaseLifecycleViewModel> PickVisualMedia(type: ActivityResultContracts.PickVisualMedia.VisualMediaType = ActivityResultContracts.PickVisualMedia.ImageAndVideo, noinline onResult: ViewModel.(Uri?) -> Unit): ComposableNavSpec.Launcher<ViewModel, PickVisualMediaRequest, Uri?>

Creates a ComposableNavSpec.Launcher to open Photo app to pick an image or video

Link copied to clipboard

Creates a ComposableNavSpec.Launcher to request multiple permissions.

Link copied to clipboard

Creates a ComposableNavSpec.Launcher to request a permission.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Creates a ComposableNavSpec.Launcher to open the camera to take a picture.