TransitionType

Transition type for a request. Made up of one source value and 0 or more qualifiers.

Entries

Link copied to clipboard

Source is a link click or the JavaScript window.open function. This is also the default value for requests like sub-resource loads that are not navigations.

Link copied to clipboard

Source is some other "explicit" navigation action such as creating a new browser or using the LoadURL function. This is also the default value for navigations where the actual type is unknown.

Link copied to clipboard

Source is a subframe navigation. This is any content that is automatically loaded in a non-toplevel frame. For example, if a page consists of several frames containing ads, those ad URLs will have this transition type. The user may not even realize the content in these pages is a separate frame, so may not care about the URL.

Link copied to clipboard

Source is a subframe navigation explicitly requested by the user that will generate new navigation entries in the back/forward list. These are probably more important than frames that were automatically loaded in the background because the user probably cares about the fact that this link was loaded.

Link copied to clipboard

Source is a form submission by the user. NOTE: In some situations submitting a form does not result in this transition type. This can happen if the form uses a script to submit the contents.

Link copied to clipboard

Source is a "reload" of the page via the Reload function or by re-visiting the same URL. NOTE: This is distinct from the concept of whether a particular load uses "reload semantics" (i.e. bypasses cached data).

Properties

Link copied to clipboard
open val value: Int

Functions

Link copied to clipboard
Any of the core values above can be augmented by one or more qualifiers defined as TransitionFlags.
Link copied to clipboard
open fun addQualifiers(flags: Int)
Add qualifiers as integer value
Link copied to clipboard
open fun getQualifiers(): Int
Returns the qualifier part of the enum as integer.
Link copied to clipboard
open fun getSource(): Int
Returns the source part of the enum as integer.
Link copied to clipboard
open fun isRedirect(): Boolean
Tests if one of the redirect qualifiers is set.
Link copied to clipboard
Tests if a qualifier is set.
Link copied to clipboard
Removes a qualifier from the enum.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.