Function

createCreationDisplayInfo

Creates a RemoteCreationDisplayInfo instance from the provided Context.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

createCreationDisplayInfo

Android
public fun createCreationDisplayInfo(context: Context): RemoteCreationDisplayInfo

Creates a RemoteCreationDisplayInfo instance from the provided Context.

This function extracts the display metrics (width, height, and density) from the Context's resources.

Parameters

context The Context used to access display metrics.

Returns

A RemoteCreationDisplayInfo object containing the display metrics from the context.