You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/agerange/usage.mdx
+107-4Lines changed: 107 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,110 @@ import Tabs from '@theme/Tabs'
7
7
importTabItemfrom'@theme/TabItem'
8
8
9
9
10
+
## Selecting the Service
11
+
12
+
As there are multiple services available on Android you will need to specify the service you wish to use by calling `initialise()` and passing a value defined in the `AgeRangeService`.
13
+
14
+
For example to specify the Amazon User Age Verification service:
Then when you make an age range request the details in this fake result will be returned.
162
265
163
-
:::note Android
266
+
:::note Google Age Signals
164
267
On Android we construct a `FakeAgeSignalsManager` and pass in the parameters from your specified `AgeRangeResult` (as described in the [testing documentation](https://developer.android.com/google/play/age-signals/test-age-signals-api))
165
268
:::
166
269
167
-
:::note iOS
168
-
On iOS, there is no method in the Declared Age Range framework to set a test result.
270
+
:::note Apple and Amazon
271
+
With Apple's Declared Age Range and Amazon's User Age Verification services, there is no method in the service to set a test result.
169
272
170
273
Instead the specified `AgeRangeResult` will simply be returned in the success callback or event, which means you will not see any UI that would be presented during a normal operation.
0 commit comments