SvgViewManager.smali
.class public Lcom/horcrux/svg/SvgViewManager;
.super Lcom/facebook/react/views/view/ReactViewManager;
.source "SvgViewManager.java"
# static fields
.field public static final REACT_CLASS:Ljava/lang/String; = "RNSVGSvgView"
.field public static final mTagToRunnable:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Ljava/lang/Runnable;",
">;"
}
.end annotation
.end field
.field public static final mTagToSvgView:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Lcom/horcrux/svg/SvgView;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
sput-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToSvgView:Landroid/util/SparseArray;
new-instance v0, Landroid/util/SparseArray;
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
sput-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToRunnable:Landroid/util/SparseArray;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/facebook/react/views/view/ReactViewManager;-><init>()V
return-void
.end method
.method public static getSvgViewByTag(I)Lcom/horcrux/svg/SvgView;
.registers 2
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
sget-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToSvgView:Landroid/util/SparseArray;
invoke-virtual {v0, p0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/horcrux/svg/SvgView;
return-object p0
.end method
.method public static runWhenViewIsAvailable(ILjava/lang/Runnable;)V
.registers 3
sget-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToRunnable:Landroid/util/SparseArray;
invoke-virtual {v0, p0, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
return-void
.end method
.method public static setSvgView(ILcom/horcrux/svg/SvgView;)V
.registers 3
sget-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToSvgView:Landroid/util/SparseArray;
invoke-virtual {v0, p0, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
sget-object p1, Lcom/horcrux/svg/SvgViewManager;->mTagToRunnable:Landroid/util/SparseArray;
invoke-virtual {p1, p0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Runnable;
if-eqz p1, :cond_17
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
sget-object p1, Lcom/horcrux/svg/SvgViewManager;->mTagToRunnable:Landroid/util/SparseArray;
invoke-virtual {p1, p0}, Landroid/util/SparseArray;->delete(I)V
:cond_17
return-void
.end method
# virtual methods
.method public bridge synthetic createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View;
.registers 2
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
invoke-virtual {p0, p1}, Lcom/horcrux/svg/SvgViewManager;->createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/horcrux/svg/SvgView;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/facebook/react/views/view/ReactViewGroup;
.registers 2
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
invoke-virtual {p0, p1}, Lcom/horcrux/svg/SvgViewManager;->createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/horcrux/svg/SvgView;
move-result-object p1
return-object p1
.end method
.method public createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/horcrux/svg/SvgView;
.registers 3
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
new-instance v0, Lcom/horcrux/svg/SvgView;
invoke-direct {v0, p1}, Lcom/horcrux/svg/SvgView;-><init>(Lcom/facebook/react/bridge/ReactContext;)V
return-object v0
.end method
.method public getName()Ljava/lang/String;
.registers 2
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
const-string v0, "RNSVGSvgView"
return-object v0
.end method
.method public needsCustomLayoutForChildren()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method public bridge synthetic onDropViewInstance(Landroid/view/View;)V
.registers 2
.param p1 # Landroid/view/View;
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
.end param
check-cast p1, Lcom/facebook/react/views/view/ReactViewGroup;
invoke-virtual {p0, p1}, Lcom/horcrux/svg/SvgViewManager;->onDropViewInstance(Lcom/facebook/react/views/view/ReactViewGroup;)V
return-void
.end method
.method public onDropViewInstance(Lcom/facebook/react/views/view/ReactViewGroup;)V
.registers 3
.param p1 # Lcom/facebook/react/views/view/ReactViewGroup;
.annotation runtime Ljavax/annotation/Nonnull;
.end annotation
.end param
invoke-super {p0, p1}, Lcom/facebook/react/uimanager/ViewManager;->onDropViewInstance(Landroid/view/View;)V
sget-object v0, Lcom/horcrux/svg/SvgViewManager;->mTagToSvgView:Landroid/util/SparseArray;
invoke-virtual {p1}, Landroid/view/ViewGroup;->getId()I
move-result p1
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->remove(I)V
return-void
.end method
.method public setAlign(Lcom/horcrux/svg/SvgView;Ljava/lang/String;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "align"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setAlign(Ljava/lang/String;)V
return-void
.end method
.method public setBbHeight(Lcom/horcrux/svg/SvgView;Lcom/facebook/react/bridge/Dynamic;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "bbHeight"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setBbHeight(Lcom/facebook/react/bridge/Dynamic;)V
return-void
.end method
.method public setBbWidth(Lcom/horcrux/svg/SvgView;Lcom/facebook/react/bridge/Dynamic;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "bbWidth"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setBbWidth(Lcom/facebook/react/bridge/Dynamic;)V
return-void
.end method
.method public setColor(Lcom/horcrux/svg/SvgView;Ljava/lang/Integer;)V
.registers 3
.param p1 # Lcom/horcrux/svg/SvgView;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "color"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setTintColor(Ljava/lang/Integer;)V
return-void
.end method
.method public setMeetOrSlice(Lcom/horcrux/svg/SvgView;I)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "meetOrSlice"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setMeetOrSlice(I)V
return-void
.end method
.method public setMinX(Lcom/horcrux/svg/SvgView;F)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "minX"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setMinX(F)V
return-void
.end method
.method public setMinY(Lcom/horcrux/svg/SvgView;F)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "minY"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setMinY(F)V
return-void
.end method
.method public setTintColor(Lcom/horcrux/svg/SvgView;Ljava/lang/Integer;)V
.registers 3
.param p1 # Lcom/horcrux/svg/SvgView;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "tintColor"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setTintColor(Ljava/lang/Integer;)V
return-void
.end method
.method public setVbHeight(Lcom/horcrux/svg/SvgView;F)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "vbHeight"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setVbHeight(F)V
return-void
.end method
.method public setVbWidth(Lcom/horcrux/svg/SvgView;F)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "vbWidth"
.end annotation
invoke-virtual {p1, p2}, Lcom/horcrux/svg/SvgView;->setVbWidth(F)V
return-void
.end method
.method public bridge synthetic updateExtraData(Landroid/view/View;Ljava/lang/Object;)V
.registers 3
check-cast p1, Lcom/facebook/react/views/view/ReactViewGroup;
invoke-virtual {p0, p1, p2}, Lcom/horcrux/svg/SvgViewManager;->updateExtraData(Lcom/facebook/react/views/view/ReactViewGroup;Ljava/lang/Object;)V
return-void
.end method
.method public bridge synthetic updateExtraData(Landroid/view/ViewGroup;Ljava/lang/Object;)V
.registers 3
check-cast p1, Lcom/facebook/react/views/view/ReactViewGroup;
invoke-virtual {p0, p1, p2}, Lcom/horcrux/svg/SvgViewManager;->updateExtraData(Lcom/facebook/react/views/view/ReactViewGroup;Ljava/lang/Object;)V
return-void
.end method
.method public updateExtraData(Lcom/facebook/react/views/view/ReactViewGroup;Ljava/lang/Object;)V
.registers 3
invoke-super {p0, p1, p2}, Lcom/facebook/react/uimanager/ViewGroupManager;->updateExtraData(Landroid/view/ViewGroup;Ljava/lang/Object;)V
invoke-virtual {p1}, Landroid/view/ViewGroup;->invalidate()V
return-void
.end method