AccessibilityRecord Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a record in an AccessibilityEvent
and contains information
about state change of its source android.view.View
.
[Android.Runtime.Register("android/view/accessibility/AccessibilityRecord", DoNotGenerateAcw=true)]
public class AccessibilityRecord : Java.Lang.Object
[<Android.Runtime.Register("android/view/accessibility/AccessibilityRecord", DoNotGenerateAcw=true)>]
type AccessibilityRecord = class
inherit Object
- Inheritance
- Derived
- Attributes
Remarks
Represents a record in an AccessibilityEvent
and contains information about state change of its source android.view.View
. When a view fires an accessibility event it requests from its parent to dispatch the constructed event. The parent may optionally append a record for itself for providing more context to android.accessibilityservice.AccessibilityService
s. Hence, accessibility services can facilitate additional accessibility records to enhance feedback. </p>
Once the accessibility event containing a record is dispatched the record is made immutable and calling a state mutation method generates an error.
<strong>Note:</strong> Not all properties are applicable to all accessibility event types. For detailed information please refer to AccessibilityEvent
.
<div class="special reference"> <h3>Developer Guides</h3>
For more information about creating and processing AccessibilityRecords, read the Accessibility developer guide.
</div>
Java documentation for android.view.accessibility.AccessibilityRecord
.
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
AccessibilityRecord() |
Creates a new |
AccessibilityRecord(AccessibilityRecord) |
Copy constructor. |
AccessibilityRecord(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
AddedCount |
Gets the number of added characters. -or- Sets the number of added characters. |
BeforeText | |
BeforeTextFormatted |
Gets the text before a change. -or- Sets the text before a change. |
Checked |
Gets if the source is checked. -or- Sets if the source is checked. |
Class |
Returns the runtime class of this |
ClassName | |
ClassNameFormatted |
Gets the class name of the source. -or- Sets the class name of the source. |
ContentDescription | |
ContentDescriptionFormatted |
Gets the description of the source. -or- Sets the description of the source. |
CurrentItemIndex |
Gets the index of the source in the list of items the can be visited. -or- Sets the index of the source in the list of items that can be visited. |
DisplayId |
Gets the id of the display from which the event comes from. |
Enabled |
Gets if the source is enabled. -or- Sets if the source is enabled. |
FromIndex |
Gets the index of the first character of the changed sequence, or the beginning of a text selection or the index of the first visible item when scrolling. -or- Sets the index of the first character of the changed sequence or the beginning of a text selection or the index of the first visible item when scrolling. |
FullScreen |
Gets if the source is taking the entire screen. -or- Sets if the source is taking the entire screen. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
ItemCount |
Gets the number of items that can be visited. -or- Sets the number of items that can be visited. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
MaxScrollX |
Gets the max scroll offset of the source left edge in pixels. -or- Sets the max scroll offset of the source left edge in pixels. |
MaxScrollY |
Gets the max scroll offset of the source top edge in pixels. -or- Sets the max scroll offset of the source top edge in pixels. |
ParcelableData |
Gets the |
Password |
Gets if the source is a password field. -or- Sets if the source is a password field. |
PeerReference | (Inherited from Object) |
RemovedCount |
Gets the number of removed characters. -or- Sets the number of removed characters. |
Scrollable |
Gets if the source is scrollable. -or- Sets if the source is scrollable. |
ScrollDeltaX |
Gets the difference in pixels between the horizontal position before the scroll and the current horizontal position -or- Sets the difference in pixels between the horizontal position before the scroll and the current horizontal position |
ScrollDeltaY |
Gets the difference in pixels between the vertical position before the scroll and the current vertical position -or- Sets the difference in pixels between the vertical position before the scroll and the current vertical position |
ScrollX |
Gets the scroll offset of the source left edge in pixels. -or- Sets the scroll offset of the source left edge in pixels. |
ScrollY |
Gets the scroll offset of the source top edge in pixels. -or- Sets the scroll offset of the source top edge in pixels. |
Source |
Gets the |
Text |
Gets the text of the event. |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ToIndex |
Gets the index of text selection end or the index of the last visible item when scrolling. -or- Sets the index of text selection end or the index of the last visible item when scrolling. |
WindowId |
Gets the id of the window from which the event comes from. |
Methods
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetSource(Int32) |
Gets the |
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) |
Obtain() |
Instantiates a new record. |
Obtain(AccessibilityRecord) |
Instantiates a new record initialized with data from the given record. |
Recycle() |
Would previously return an instance back to be reused. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetSource(View, Int32) |
Sets the source to be a virtual descendant of the given |
SetSource(View) |
Sets the event source. |
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) |