Skip to end of metadata
Go to start of metadata

Represent signature canvas view.

Definition

public class SignatureCanvasView : ViewBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Protected Constructors

Public Properties

AntiAlias Gets or sets a value indicating whether [anti alias].
CurrentPoints Gets or sets the current points.
Points Gets the points.
SignatureByte Gets or sets the signature byte.
StrokeCap Gets or sets the stroke cap.
StrokeColor Gets or sets the color of the stroke.
StrokeJoin Gets or sets the stroke join.
StrokeWidth Gets or sets the width of the stroke.

Fields

AntiAliasProperty The anti alias property.
SignatureByteProperty The signature byte property.
StrokeCapProperty The stroke cap property.
StrokeColorProperty The stroke color property.
StrokeJoinProperty The stroke join property.
StrokeWidthProperty The stroke width property.

Public Methods

Clear() Clears this instance.
OnTouchEvent(MotionEvent) Implement this method to handle touch screen motion events.

Protected Methods

Initialize() Initializes this instance.
OnCreateDrawableState(int) Generate the new state for this view.
OnDraw(Canvas) Implement this to do your drawing.
OnPropertyChanged(Property, object, object) Called when [property changed].
OnRestoreInstanceState(IParcelable) Hook allowing a view to re-apply a representation of its internal state that had previously been generated by .
OnSaveInstanceState() Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state.
OnViewCreated() Called when [view created].
OnViewInitializing() Called when [view initializing].

Public Constructors

public SignatureCanvasView(Context context)

Initializes a new instance of the SignatureCanvasView class.

Parameters

context The context.

public SignatureCanvasView(Context context, IAttributeSet attrs)

Initializes a new instance of the SignatureCanvasView class.

Parameters

context The context.
attrs The attrs.

Protected Constructors

protected SignatureCanvasView(IntPtr javaReference, JniHandleOwnership transfer)

Initializes a new instance of the SignatureCanvasView class.

Parameters

javaReference The java reference.
transfer The transfer.

Public Properties

public bool AntiAlias { get; set; }

Gets or sets a value indicating whether [anti alias].

public List<PointF> CurrentPoints { get; set; }

Gets or sets the current points.

public PointF[] Points { get; }

Gets the points.

public Byte[] SignatureByte { get; set; }

Gets or sets the signature byte.

public int StrokeCap { get; set; }

Gets or sets the stroke cap.

public Color StrokeColor { get; set; }

Gets or sets the color of the stroke.

public int StrokeJoin { get; set; }

Gets or sets the stroke join.

public int StrokeWidth { get; set; }

Gets or sets the width of the stroke.

Fields

public static Property AntiAliasProperty

The anti alias property.

public static Property SignatureByteProperty

The signature byte property.

public static Property StrokeCapProperty

The stroke cap property.

public static Property StrokeColorProperty

The stroke color property.

public static Property StrokeJoinProperty

The stroke join property.

public static Property StrokeWidthProperty

The stroke width property.

Public Methods

public void Clear()

Clears this instance.

public bool OnTouchEvent(MotionEvent e)

Implement this method to handle touch screen motion events.

Remarks

Implement this method to handle touch screen motion events. &lt;format type=&quot;text/html&quot;&gt; &lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent)&quot; target=&quot;_blank&quot;&gt;[Android Documentation]&lt;/a&gt; &lt;/format&gt;

Parameters

e The motion event.

Return Types

To be added.

Protected Methods

protected void Initialize()

Initializes this instance.

protected Int32[] OnCreateDrawableState(int extraSpace)

Generate the new state for this view.

Remarks

Generate the new state for this view. This is called by the view system when the cached Drawable state is determined to be invalid. To retrieve the current state, you should use . &lt;format type=&quot;text/html&quot;&gt; &lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#onCreateDrawableState(int)&quot; target=&quot;_blank&quot;&gt;[Android Documentation]&lt;/a&gt; &lt;/format&gt;

Parameters

extraSpace if non-zero, this is the number of extra entries you would like in the returned array in which you can place your own states.

Return Types

To be added.

protected void OnDraw(Canvas canvas)

Implement this to do your drawing.

Remarks

Implement this to do your drawing. &lt;format type=&quot;text/html&quot;&gt; &lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#onDraw(android.graphics.Canvas)&quot; target=&quot;_blank&quot;&gt;[Android Documentation]&lt;/a&gt; &lt;/format&gt;

Parameters

canvas the canvas on which the background will be drawn

protected void OnPropertyChanged(Property property, object oldValue, object newValue)

Called when [property changed].

Parameters

property The property.
oldValue The old value.
newValue The new value.

protected void OnRestoreInstanceState(IParcelable state)

Hook allowing a view to re-apply a representation of its internal state that had previously been generated by .

Remarks

Hook allowing a view to re-apply a representation of its internal state that had previously been generated by . This function will never be called with a null state. &lt;format type=&quot;text/html&quot;&gt; &lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#onRestoreInstanceState(android.os.Parcelable)&quot; target=&quot;_blank&quot;&gt;[Android Documentation]&lt;/a&gt; &lt;/format&gt;

Parameters

state The frozen state that had previously been returned by .

protected IParcelable OnSaveInstanceState()

Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state.

Remarks

Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state. This state should only contain information that is not persistent or can not be reconstructed later. For example, you will never store your current position on screen because that will be computed again when a new instance of the view is placed in its view hierarchy. Some examples of things you may store here: the current cursor position in a text view (but usually not the text itself since that is stored in a content provider or other persistent storage), the currently selected item in a list view. &lt;format type=&quot;text/html&quot;&gt; &lt;a href=&quot;http://developer.android.com/reference/android/view/View.html#onSaveInstanceState()&quot; target=&quot;_blank&quot;&gt;[Android Documentation]&lt;/a&gt; &lt;/format&gt;

Return Types

To be added.

protected void OnViewCreated()

Called when [view created].

Exceptions

Exception StrokeWidth must be larger than 0. If you bind this property, please provide default value.

protected void OnViewInitializing()

Called when [view initializing].

  • No labels