View calls this method to pass a reference to itself to the layer when the layer is added to the view.
When the layer is removed from the view, it passes null
to the layer. Custom layers can implement this method and perform
the necessary initialization. This method should not be called by user code.
this |
a Layer |
view |
a View |