Gpc

interface Gpc

Public interface for the Gpc feature

Functions

Link copied to clipboard
abstract fun canUrlAddHeaders(url: String, existingHeaders: Map<String, String>): Boolean

This method takes a url and a map with its existingHeaders and it then returns true if the given url can add the GPC headers

Link copied to clipboard
abstract fun disableGpc()

This method is used to disable GPC. Note: The remote configuration will take precedence over this value.

Link copied to clipboard
abstract fun enableGpc()

This method is used to enable GPC. Note: The remote configuration will take precedence over this value.

Link copied to clipboard
abstract fun getHeaders(url: String): Map<String, String>

This method returns a Map with the GPC headers IF the url passed allows for them to be added.

Link copied to clipboard
abstract fun isEnabled(): Boolean

This takes into account two different inputs.