Implement this interface to receive control over various channel events. Channels will try to get this interface from a channel's notificationCallbacks or, if not available there, from the loadGroup's notificationCallbacks.
These methods are called before onStartRequest, and should be handled SYNCHRONOUSLY.
Called when a redirect occurs. This may happen due to an HTTP 3xx status code.
- oldChannel: The channel that's being redirected.
- newChannel: The new channel. This channel is not opened yet.
- flags: Flags indicating the type of redirect. A bitmask consisting of flags from above. One of REDIRECT_TEMPORARY and REDIRECT_PERMANENT will always be set.
Reference documentation is generated from Mozilla's source.