RelayRemoteSettingsClient

Client for fetching Relay data from Remote Settings

This struct holds separate Remote Settings clients for the allowlist and denylist collections. It follows the same pattern as SuggestRemoteSettingsClient.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class>)
constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.

constructor(rsService: RemoteSettingsService)

Creates a new RelayRemoteSettingsClient from a RemoteSettingsService

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun shouldShowRelay(host: String, domain: String, isRelayUser: Boolean): Boolean

Determines whether Firefox Relay should be offered for a given site.

Link copied to clipboard
fun uniffiClonePointer(): <Error class: unknown class>