URL

class URL(spec: String)(source)

Stands in for java.net.URL as the carrier of a URL string, so that the Firebase Android SDK members taking one (FirebaseFunctions.getHttpsCallableFromUrl, FirebasePerformance.newHttpMetric) keep their signatures in common code and Android code creating one inline, URL("https://…"), compiles unchanged.

On Android and the JVM the class is a header stub stripped from the output (see buildSrc utils/HeaderStubs.kt), so code there uses the JDK's. Elsewhere this class is shipped: it holds the string as given, with none of the JDK's parsing or validation, and the platform SDK receives toString. Only the members the SDK needs are declared.

Constructors

Link copied to clipboard
constructor(spec: String)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

The URL string as given.

Link copied to clipboard
open override fun toString(): String