TextShaper.IGlyphsConsumer.Accept Method
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.
Accept text shape result.
[Android.Runtime.Register("accept", "(IILandroid/graphics/text/PositionedGlyphs;Landroid/text/TextPaint;)V", "GetAccept_IILandroid_graphics_text_PositionedGlyphs_Landroid_text_TextPaint_Handler:Android.Text.TextShaper/IGlyphsConsumerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public void Accept (int start, int count, Android.Graphics.Text.PositionedGlyphs glyphs, Android.Text.TextPaint paint);
[<Android.Runtime.Register("accept", "(IILandroid/graphics/text/PositionedGlyphs;Landroid/text/TextPaint;)V", "GetAccept_IILandroid_graphics_text_PositionedGlyphs_Landroid_text_TextPaint_Handler:Android.Text.TextShaper/IGlyphsConsumerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member Accept : int * int * Android.Graphics.Text.PositionedGlyphs * Android.Text.TextPaint -> unit
Parameters
- start
- Int32
The start index of the shaped text.
- count
- Int32
The length of the shaped text.
- glyphs
- PositionedGlyphs
The shape result.
- paint
- TextPaint
The paint to be used for drawing.
- Attributes
Remarks
Accept text shape result.
The implementation must not keep reference of paint since it will be mutated for the subsequent styles. Also, for saving heap size, keep only necessary members in the TextPaint
instead of copying TextPaint
object.
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.