rememberConsent

@Composable
actual fun rememberConsent(): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

See also


@Composable
actual fun rememberConsent(requestParameters: ConsentRequestParameters): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

requestParameters

The ConsentRequestParameters to use for consent requests.

See also


@Composable
actual fun rememberConsent(debugSettings: ConsentDebugSettings): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

debugSettings

The ConsentDebugSettings to use for debugging purposes.

See also


@Composable
actual fun rememberConsent(activity: Any?): MutableState<Consent>

Deprecated

The `activity` argument is no longer required as of v1.1.0-beta01

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

activity

The current Activity context. This is crucial for the UMP SDK to function correctly. It's recommended to pass the result of LocalContext.current as? Activity.

See also

@Composable
expect fun rememberConsent(): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

See also


@Composable
expect fun rememberConsent(requestParameters: ConsentRequestParameters): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

requestParameters

The ConsentRequestParameters to use for consent requests.

See also


@Composable
expect fun rememberConsent(debugSettings: ConsentDebugSettings): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

debugSettings

The ConsentDebugSettings to use for debugging purposes.

See also


@Composable
expect fun rememberConsent(activity: Any?): MutableState<Consent>

Deprecated

The `activity` argument is no longer required as of v1.1.0-beta01

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

activity

The current Activity context. This is crucial for the UMP SDK to function correctly. It's recommended to pass the result of LocalContext.current as? Activity.

See also

@Composable
actual fun rememberConsent(): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

See also

DependsOnGoogleUserMessagingPlatform

@Composable
actual fun rememberConsent(requestParameters: ConsentRequestParameters): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

requestParameters

The ConsentRequestParameters to use for consent requests.

See also

DependsOnGoogleUserMessagingPlatform

@Composable
actual fun rememberConsent(debugSettings: ConsentDebugSettings): MutableState<Consent>

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

debugSettings

The ConsentDebugSettings to use for debugging purposes.

See also

DependsOnGoogleUserMessagingPlatform

@Composable
actual fun rememberConsent(activity: Any?): MutableState<Consent>

Deprecated

The `activity` argument is no longer required as of v1.1.0-beta01

Composable function to remember and manage user consent for ads.

This function creates and remembers a Consent object, which handles interactions with the Google User Messaging Platform (UMP) SDK to obtain and manage user consent for personalized advertising.

It initializes the consent state and checks if privacy options are required and if ads can be requested.

Return

A MutableState holding the Consent object. This allows observing and reacting to changes in the consent status within your Composable UI.

Parameters

activity

The current Activity context. This is crucial for the UMP SDK to function correctly. It's recommended to pass the result of LocalContext.current as? Activity.

See also

DependsOnGoogleUserMessagingPlatform