Parameters
- oldlayer
- This GoLayer value is the old value of Layer. The value will be null if the object did not belong to a layer but is being added to one.
- newlayer
- This GoLayer value is the new value of Layer. The value will be null if the object is being removed from a layer.
- mainObj
- This is the object that is being inserted or removed from a layer.