saveCookies abstract method

void saveCookies(
  1. Uri uri,
  2. List<Cookie> cookies
)

Saves cookies for the specified URI.

Platform behavior:

  • Web: Saves to browser's cookie store
  • Mobile: Saves to local encrypted storage

Duplicate handling: When multiple cookies have the same name, the last occurrence takes precedence. This follows standard HTTP cookie behavior.

Parameters:

  • uri: The URI to associate cookies with
  • cookies: List of cookies to save

Implementation

void saveCookies(Uri uri, List<Cookie> cookies);