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/latest/api/cookies.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ the response.
114
114
cookie and will not be retained between sessions.
115
115
*`sameSite` string (optional) - The [Same Site](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies) policy to apply to this cookie. Can be `unspecified`, `no_restriction`, `lax` or `strict`. Default is `lax`.
116
116
117
-
Returns `Promise<void>` - A promise which resolves when the cookie has been set
117
+
Returns `Promise<void>` - A promise which resolves when the cookie has been set.
118
118
119
119
Sets a cookie with `details`.
120
120
@@ -123,16 +123,16 @@ Sets a cookie with `details`.
123
123
*`url` string - The URL associated with the cookie.
124
124
*`name` string - The name of cookie to remove.
125
125
126
-
Returns `Promise<void>` - A promise which resolves when the cookie has been removed
126
+
Returns `Promise<void>` - A promise which resolves when the cookie has been removed.
127
127
128
-
Removes the cookies matching `url` and `name`
128
+
Removes the cookies matching `url` and `name`.
129
129
130
130
#### `cookies.flushStore()`
131
131
132
-
Returns `Promise<void>` - A promise which resolves when the cookie store has been flushed
132
+
Returns `Promise<void>` - A promise which resolves when the cookie store has been flushed.
133
133
134
-
Writes any unwritten cookies data to disk
134
+
Writes any unwritten cookies data to disk.
135
135
136
-
Cookies written by any method will not be written to disk immediately, but will be written every 30 seconds or 512 operations
136
+
Cookies written by any method will not be written to disk immediately, but will be written every 30 seconds or 512 operations.
137
137
138
138
Calling this method can cause the cookie to be written to disk immediately.
Restores finished transactions. This method can be called either to install purchases on additional devices, or to restore purchases for an application that the user deleted and reinstalled.
57
97
58
98
[The payment queue](https://developer.apple.com/documentation/storekit/skpaymentqueue?language=objc) delivers a new transaction for each previously completed transaction that can be restored. Each transaction includes a copy of the original transaction.
0 commit comments