Function

createProfile

Creates a Profile configured for Android RemoteCompose creation.

createProfile

Source set: Android
public fun createProfile(
    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 RcPlatformProfiles, such as 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.

Content updated: