Function

Profile

Creates a Profile configured for Android RemoteCompose creation.

Profile

Source set: Android
public fun Profile(
    docApiLevel: Int = CoreDocument.DOCUMENT_API_LEVEL,
    profileFlags: Int = RcProfiles.PROFILE_ANDROIDX,
    supportedOperations: IntSet? = null,
): Profile

Creates a Profile configured for Android RemoteCompose creation.

This provides a Kotlin-friendly factory for Profile with sensible defaults, avoiding the need to manually configure internal platform services and writer implementations.

For predefined profiles, see androidx.compose.remote.creation.profile.RcPlatformProfiles, such as androidx.compose.remote.creation.profile.RcPlatformProfiles.ANDROIDX.

Parameters

docApiLevel The document API level supported by this profile. Defaults to the latest document API level (CoreDocument.DOCUMENT_API_LEVEL).
profileFlags The operation profile bitmask (from RcProfiles) specifying the profile category. Defaults to RcProfiles.PROFILE_ANDROIDX.
supportedOperations An optional explicit set of supported operation IDs. If specified, only operations in this set will be enabled in the document buffer. If null, all the operations defined by docApiLevel and profileFlags are used.

Return

A Profile configured for Android RemoteCompose creation.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: