Documentation
¶
Overview ¶
Package trackingconsent asks before the app tracks them across other apps and websites, as the App Store requires.
nimbus native plugin add tracking-consent
if s, _ := trackingconsent.Request(ctx); s.Allowed() {
ads.Personalize()
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status string
Status is what they've said.
const ( // NotAsked means Request will show the prompt. NotAsked Status = "not-asked" Granted Status = "granted" Denied Status = "denied" // Restricted means the phone doesn't let them choose, such as on a // child's account. Treat it as Denied. Restricted Status = "restricted" // NotNeeded means this platform has no such prompt: Android. NotNeeded Status = "not-needed" )
Click to show internal directories.
Click to hide internal directories.