name property Null safety

String name
final

The channel's name.

Passing this channel object as part of a WebView.javascriptChannels adds a channel object to the Javascript window object's property named name.

The name must start with a letter or underscore(_), followed by any combination of those characters plus digits.

Note that any JavaScript existing window property with this name will be overriden.

See also WebView.javascriptChannels for more details on the channel registration mechanism.

Implementation

final String name;