class WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer {

  @Override
  public void setVisibility(String visibility) {
    super.setVisibility(visibility);
    boolean visible = TextUtils.equals(visibility, Constants.Value.VISIBLE);
    if(mIsVisible != visible){

      if (!TextUtils.isEmpty(src) && visible) {
        if (mNestedInstance == null) {
          loadContent();
        } else {
          mNestedInstance.onViewAppear();
        }
      }

      if (!visible) {
        if (mNestedInstance != null) {
          mNestedInstance.onViewDisappear();
        }
      }
      mIsVisible = visible;
      doAutoEmbedMemoryStrategy();
    }
  }

  @Deprecated public  WXEmbed(WXSDKInstance instance, WXDomObject dom, WXVContainer parent, String instanceId, boolean isLazy);
  public  WXEmbed(WXSDKInstance instance, WXDomObject node, WXVContainer parent);

}