ReactTextInputSelectionEvent.smali
.class Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;
.super Lcom/facebook/react/uimanager/events/Event;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/react/uimanager/events/Event<",
"Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;",
">;"
}
.end annotation
# static fields
.field private static final EVENT_NAME:Ljava/lang/String; = "topSelectionChange"
# instance fields
.field private mSelectionEnd:I
.field private mSelectionStart:I
# direct methods
.method public constructor <init>(III)V
.registers 4
.line 1
invoke-direct {p0, p1}, Lcom/facebook/react/uimanager/events/Event;-><init>(I)V
.line 2
iput p2, p0, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->mSelectionStart:I
.line 3
iput p3, p0, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->mSelectionEnd:I
return-void
.end method
.method private serializeEventData()Lcom/facebook/react/bridge/WritableMap;
.registers 5
.line 1
invoke-static {}, Lcom/facebook/react/bridge/Arguments;->createMap()Lcom/facebook/react/bridge/WritableMap;
move-result-object v0
.line 2
invoke-static {}, Lcom/facebook/react/bridge/Arguments;->createMap()Lcom/facebook/react/bridge/WritableMap;
move-result-object v1
.line 3
iget v2, p0, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->mSelectionEnd:I
const-string v3, "end"
invoke-interface {v1, v3, v2}, Lcom/facebook/react/bridge/WritableMap;->putInt(Ljava/lang/String;I)V
.line 4
iget v2, p0, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->mSelectionStart:I
const-string v3, "start"
invoke-interface {v1, v3, v2}, Lcom/facebook/react/bridge/WritableMap;->putInt(Ljava/lang/String;I)V
const-string v2, "selection"
.line 5
invoke-interface {v0, v2, v1}, Lcom/facebook/react/bridge/WritableMap;->putMap(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableMap;)V
return-object v0
.end method
# virtual methods
.method public dispatch(Lcom/facebook/react/uimanager/events/RCTEventEmitter;)V
.registers 5
invoke-virtual {p0}, Lcom/facebook/react/uimanager/events/Event;->getViewTag()I
move-result v0
invoke-virtual {p0}, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->getEventName()Ljava/lang/String;
move-result-object v1
invoke-direct {p0}, Lcom/facebook/react/views/textinput/ReactTextInputSelectionEvent;->serializeEventData()Lcom/facebook/react/bridge/WritableMap;
move-result-object v2
invoke-interface {p1, v0, v1, v2}, Lcom/facebook/react/uimanager/events/RCTEventEmitter;->receiveEvent(ILjava/lang/String;Lcom/facebook/react/bridge/WritableMap;)V
return-void
.end method
.method public getEventName()Ljava/lang/String;
.registers 2
const-string v0, "topSelectionChange"
return-object v0
.end method