RemoteViews RemoteViews Class

Definition

A class that describes a view hierarchy that can be displayed in another process.

[Android.Runtime.Register("android/widget/RemoteViews", ApiSince=1, DoNotGenerateAcw=true)]
public class RemoteViews : Java.Lang.Object, Android.OS.IParcelable, Android.Views.LayoutInflater.IFilter, IDisposable
type RemoteViews = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface LayoutInflater.IFilter
Inheritance
RemoteViewsRemoteViews
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

RemoteViews(IntPtr, JniHandleOwnership) RemoteViews(IntPtr, JniHandleOwnership)

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

RemoteViews(Parcel) RemoteViews(Parcel)

Reads a RemoteViews object from a parcel.

RemoteViews(RemoteViews, RemoteViews) RemoteViews(RemoteViews, RemoteViews)

Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration.

RemoteViews(String, Int32) RemoteViews(String, Int32)

Create a new RemoteViews object that will display the views contained in the specified layout file.

Properties

Class Class

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

(Inherited from Object)
Creator Creator

Parcelable.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
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
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LayoutId LayoutId

Reutrns the layout id of the root layout associated with this RemoteViews.

Package Package
PeerReference PeerReference Inherited from Object
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.

Methods

AddView(Int32, RemoteViews) AddView(Int32, RemoteViews)

Equivalent to calling AddView(View) after inflating the given RemoteViews.

Apply(Context, ViewGroup) Apply(Context, ViewGroup)

Inflates the view hierarchy represented by this object and applies all of the actions.

Clone() Clone()

Creates and returns a copy of this Object.

DescribeContents() DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
JavaFinalize() JavaFinalize()

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

(Inherited from Object)
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)
OnLoadClass(Class) OnLoadClass(Class)

Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.

Reapply(Context, View) Reapply(Context, View)

Applies all of the actions to the provided view.

RemoveAllViews(Int32) RemoveAllViews(Int32)

Equivalent to calling RemoveAllViews().

SetAccessibilityTraversalAfter(Int32, Int32) SetAccessibilityTraversalAfter(Int32, Int32)
SetAccessibilityTraversalBefore(Int32, Int32) SetAccessibilityTraversalBefore(Int32, Int32)
SetBitmap(Int32, String, Bitmap) SetBitmap(Int32, String, Bitmap)

Call a method taking one Bitmap on a view in the layout for this RemoteViews.

SetBoolean(Int32, String, Boolean) SetBoolean(Int32, String, Boolean)

Call a method taking one boolean on a view in the layout for this RemoteViews.

SetBundle(Int32, String, Bundle) SetBundle(Int32, String, Bundle)

Call a method taking one Bundle on a view in the layout for this RemoteViews.

SetByte(Int32, String, SByte) SetByte(Int32, String, SByte)

Call a method taking one byte on a view in the layout for this RemoteViews.

SetChar(Int32, String, Char) SetChar(Int32, String, Char)

Call a method taking one char on a view in the layout for this RemoteViews.

SetCharSequence(Int32, String, ICharSequence) SetCharSequence(Int32, String, ICharSequence)

Call a method taking one CharSequence on a view in the layout for this RemoteViews.

SetCharSequence(Int32, String, String) SetCharSequence(Int32, String, String)
SetChronometer(Int32, Int64, String, Boolean) SetChronometer(Int32, Int64, String, Boolean)

Equivalent to calling Base, Format, and Start() or Stop().

SetChronometerCountDown(Int32, Boolean) SetChronometerCountDown(Int32, Boolean)
SetContentDescription(Int32, ICharSequence) SetContentDescription(Int32, ICharSequence)

Equivalent to calling View.setContentDescription(CharSequence).

SetContentDescription(Int32, String) SetContentDescription(Int32, String)
SetDisplayedChild(Int32, Int32) SetDisplayedChild(Int32, Int32)

Equivalent to calling DisplayedChild

SetDouble(Int32, String, Double) SetDouble(Int32, String, Double)

Call a method taking one double on a view in the layout for this RemoteViews.

SetEmptyView(Int32, Int32) SetEmptyView(Int32, Int32)

Equivalent to calling AdapterView.setEmptyView

SetFloat(Int32, String, Single) SetFloat(Int32, String, Single)

Call a method taking one float on a view in the layout for this RemoteViews.

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

Sets the Handle property.

(Inherited from Object)
SetIcon(Int32, String, Icon) SetIcon(Int32, String, Icon)
SetImageViewBitmap(Int32, Bitmap) SetImageViewBitmap(Int32, Bitmap)

Equivalent to calling ImageView.setImageBitmap

SetImageViewIcon(Int32, Icon) SetImageViewIcon(Int32, Icon)
SetImageViewResource(Int32, Int32) SetImageViewResource(Int32, Int32)

Equivalent to calling ImageView.setImageResource

SetImageViewUri(Int32, Uri) SetImageViewUri(Int32, Uri)

Equivalent to calling ImageView.setImageURI

SetInt(Int32, String, Int32) SetInt(Int32, String, Int32)

Call a method taking one int on a view in the layout for this RemoteViews.

SetIntent(Int32, String, Intent) SetIntent(Int32, String, Intent)

Call a method taking one Intent on a view in the layout for this RemoteViews.

SetLabelFor(Int32, Int32) SetLabelFor(Int32, Int32)

Equivalent to calling View.setLabelFor(int).

SetLong(Int32, String, Int64) SetLong(Int32, String, Int64)

Call a method taking one long on a view in the layout for this RemoteViews.

SetOnClickFillInIntent(Int32, Intent) SetOnClickFillInIntent(Int32, Intent)

When using collections (eg.

SetOnClickPendingIntent(Int32, PendingIntent) SetOnClickPendingIntent(Int32, PendingIntent)

Equivalent to calling M:Android.Views.View.SetOnClickListener(.IOnClickListener) to launch the provided PendingIntent.

SetPendingIntentTemplate(Int32, PendingIntent) SetPendingIntentTemplate(Int32, PendingIntent)

When using collections (eg.

SetProgressBar(Int32, Int32, Int32, Boolean) SetProgressBar(Int32, Int32, Int32, Boolean)

Equivalent to calling Max, Progress, and Indeterminate

If indeterminate is true, then the values for max and progress are ignored.

SetRelativeScrollPosition(Int32, Int32) SetRelativeScrollPosition(Int32, Int32)

Equivalent to calling SmoothScrollToPosition(Int32, Int32).

SetRemoteAdapter(Int32, Int32, Intent) SetRemoteAdapter(Int32, Int32, Intent)

Equivalent to calling SetRemoteViewsAdapter(Intent).

SetRemoteAdapter(Int32, Intent) SetRemoteAdapter(Int32, Intent)

Equivalent to calling SetRemoteViewsAdapter(Intent).

SetScrollPosition(Int32, Int32) SetScrollPosition(Int32, Int32)

Equivalent to calling SmoothScrollToPosition(Int32, Int32).

SetShort(Int32, String, Int16) SetShort(Int32, String, Int16)

Call a method taking one short on a view in the layout for this RemoteViews.

SetString(Int32, String, String) SetString(Int32, String, String)

Call a method taking one String on a view in the layout for this RemoteViews.

SetTextColor(Int32, Color) SetTextColor(Int32, Color)

Equivalent to calling SetTextColor(Color).

SetTextViewCompoundDrawables(Int32, Int32, Int32, Int32, Int32) SetTextViewCompoundDrawables(Int32, Int32, Int32, Int32, Int32)

Equivalent to calling SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32).

SetTextViewCompoundDrawablesRelative(Int32, Int32, Int32, Int32, Int32) SetTextViewCompoundDrawablesRelative(Int32, Int32, Int32, Int32, Int32)

Equivalent to calling SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32).

SetTextViewText(Int32, ICharSequence) SetTextViewText(Int32, ICharSequence)

Equivalent to calling TextView.setText

SetTextViewText(Int32, String) SetTextViewText(Int32, String)
SetTextViewTextSize(Int32, Int32, Single) SetTextViewTextSize(Int32, Int32, Single)

Equivalent to calling SetTextSize(ComplexUnitType, Single)

SetUri(Int32, String, Uri) SetUri(Int32, String, Uri)

Call a method taking one Uri on a view in the layout for this RemoteViews.

SetViewPadding(Int32, Int32, Int32, Int32, Int32) SetViewPadding(Int32, Int32, Int32, Int32, Int32)

Equivalent to calling SetPadding(Int32, Int32, Int32, Int32).

SetViewVisibility(Int32, ViewStates) SetViewVisibility(Int32, ViewStates)

Equivalent to calling View.setVisibility

ShowNext(Int32) ShowNext(Int32)

Equivalent to calling ShowNext()

ShowPrevious(Int32) ShowPrevious(Int32)

Equivalent to calling ShowPrevious()

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

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
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)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

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