Package 

Class TextInlineImageSpan

  • All Implemented Interfaces:
    android.text.style.UpdateAppearance , android.text.style.UpdateLayout , com.facebook.react.views.text.ReactSpan

    
    public abstract class TextInlineImageSpan
    extends ReplacementSpan implements ReactSpan
                        

    Base class for inline image spans.

    • Method Summary

      Modifier and Type Method Description
      static void possiblyUpdateInlineImageSpans(Spannable spannable, TextView view) For TextInlineImageSpan we need to update the Span to know that the window is attached and theTextView that we will set as the callback on the Drawable.
      abstract Drawable getDrawable() Get the drawable that is span represents.
      abstract void onDetachedFromWindow() Called by the text view from onDetachedFromWindow,
      abstract void onStartTemporaryDetach() Called by the text view from onStartTemporaryDetach.
      abstract void onAttachedToWindow() Called by the text view from onAttachedToWindow.
      abstract void onFinishTemporaryDetach() Called by the text view from onFinishTemporaryDetach.
      abstract void setTextView(TextView textView) Set the textview that will contain this span.
      abstract int getWidth() Get the width of the span.
      abstract int getHeight() Get the height of the span.
      • Methods inherited from class android.text.style.ReplacementSpan

        draw, getContentDescription, getSize, setContentDescription, updateDrawState, updateMeasureState
      • Methods inherited from class android.text.style.MetricAffectingSpan

        getUnderlying
      • Methods inherited from class android.text.style.CharacterStyle

        getUnderlying, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait