Uri Uri Class

Definition

Immutable URI reference.

[Android.Runtime.Register("android/net/Uri", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class Uri : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Lang.IComparable
type Uri = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IComparable
Inheritance
Attributes
Implements

Remarks

Android platform documentation

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(IntPtr, JniHandleOwnership) Uri(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Authority Authority

Gets the decoded authority part of this URI.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Creator Creator

Reads Uris from Parcels.

Empty Empty

The empty URI, equivalent to "".

EncodedAuthority EncodedAuthority

Gets the encoded authority part of this URI.

EncodedFragment EncodedFragment

Gets the encoded fragment part of this URI, everything after the '#'.

EncodedPath EncodedPath

Gets the encoded path.

EncodedQuery EncodedQuery

Gets the encoded query component from this URI.

EncodedSchemeSpecificPart EncodedSchemeSpecificPart

Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'.

EncodedUserInfo EncodedUserInfo

Gets the encoded user information from the authority.

Fragment Fragment

Gets the decoded fragment part of this URI, everything after the '#'.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Host Host

Gets the encoded host from the authority for this URI.

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsAbsolute IsAbsolute

Returns true if this URI is absolute, i.e. if it contains an explicit scheme.

IsHierarchical IsHierarchical

Returns true if this URI is hierarchical like "http://google.com".

IsOpaque IsOpaque

Returns true if this URI is opaque like "mailto:nobody@google.com".

IsRelative IsRelative

Returns true if this URI is relative, i.e. if it doesn't contain an explicit scheme.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LastPathSegment LastPathSegment

Gets the decoded last segment in the path.

Path Path

Gets the decoded path.

PathSegments PathSegments

Gets the decoded path segments.

PeerReference PeerReference Inherited from Object
Port Port

Gets the port from the authority for this URI.

Query Query

Gets the decoded query component from this URI.

QueryParameterNames QueryParameterNames

Returns a set of the unique names of all query parameters.

Scheme Scheme

Gets the scheme of this URI.

SchemeSpecificPart SchemeSpecificPart

Gets the scheme-specific part of this URI, i.e. everything between the scheme separator ':' and the fragment separator '#'.

ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

UserInfo UserInfo

Gets the decoded user information from the authority.

Methods

BuildUpon() BuildUpon()

Constructs a new builder, copying the attributes from this Uri.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CompareTo(Uri) CompareTo(Uri)

Compares the string representation of this Uri with that of another.

Decode(String) Decode(String)

Decodes '%'-escaped octets in the given string using the UTF-8 scheme.

DescribeContents() DescribeContents()
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Encode(String) Encode(String)

Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme.

Encode(String, String) Encode(String, String)

Encodes characters in the given string as '%'-escaped octets using the UTF-8 scheme.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FromFile(File) FromFile(File)

Creates a Uri from a file.

FromParts(String, String, String) FromParts(String, String, String)

Creates an opaque Uri from the given components.

GetBooleanQueryParameter(String, Boolean) GetBooleanQueryParameter(String, Boolean)

Searches the query string for the first value with the given key and interprets it as a boolean value. "false" and "0" are interpreted as false, everything else is interpreted as true.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetQueryParameter(String) GetQueryParameter(String)

Searches the query string for the first value with the given key.

GetQueryParameters(String) GetQueryParameters(String)

Searches the query string for parameter values with the given key.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
NormalizeScheme() NormalizeScheme()

Return an equivalent URI with a lowercase scheme component.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Parse(String) Parse(String)

Creates a Uri which parses the given encoded URI string.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

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

Returns the encoded string representation of this URI.

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

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WithAppendedPath(Uri, String) WithAppendedPath(Uri, String)

Creates a new Uri by appending an already-encoded path segment to a base Uri.

WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)
WriteToParcel(Parcel, Uri) WriteToParcel(Parcel, Uri)

Writes a Uri to a Parcel.

Explicit Interface Implementations

IComparable.CompareTo(Object) IComparable.CompareTo(Object)
IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to