Share via


Uri.Builder Class

Definition

Helper class for building or manipulating URI references.

[Android.Runtime.Register("android/net/Uri$Builder", DoNotGenerateAcw=true)]
public sealed class Uri.Builder : Java.Lang.Object
[<Android.Runtime.Register("android/net/Uri$Builder", DoNotGenerateAcw=true)>]
type Uri.Builder = class
    inherit Object
Inheritance
Uri.Builder
Attributes

Remarks

Helper class for building or manipulating URI references. Not safe for concurrent use.

An absolute hierarchical URI reference follows the pattern: <scheme>://<authority><absolute path>?<query>#<fragment>

Relative URI references (which are always hierarchical) follow one of two patterns: <relative or absolute path>?<query>#<fragment> or //<authority><absolute path>?<query>#<fragment>

An opaque URI follows this pattern: <scheme>:<opaque part>#<fragment>

Use Uri#buildUpon() to obtain a builder representing an existing URI.

Java documentation for android.net.Uri.Builder.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Uri.Builder()

Constructs a new Builder.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

AppendEncodedPath(String)

Appends the given segment to the path.

AppendPath(String)

Encodes the given segment and appends it to the path.

AppendQueryParameter(String, String)

Encodes the key and value and then appends the parameter to the query string.

Authority(String)

Encodes and sets the authority.

Build()

Constructs a Uri with the current attributes.

ClearQuery()

Clears the the previously set query.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
EncodedAuthority(String)

Sets the previously encoded authority.

EncodedFragment(String)

Sets the previously encoded fragment.

EncodedOpaquePart(String)

Sets the previously encoded opaque scheme-specific-part.

EncodedPath(String)

Sets the previously encoded path.

EncodedQuery(String)

Sets the previously encoded query.

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Fragment(String)

Encodes and sets the fragment.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OpaquePart(String)

Encodes and sets the given opaque scheme-specific-part.

Path(String)

Sets the path.

Query(String)

Encodes and sets the query.

Scheme(String)

Sets the scheme.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to