public boolean setViewPortVisibility ( final ViewPortVisibility viewportVisibility ) { boolean visibilityIsChanged = viewportVisibility != mIsVisibleInViewPort ; if ( visibilityIsChanged ) { Visibility visibility = mVisibility ; switch ( viewportVisibility ) { case FULLY_VISIBLE : case PARTIALLY_VISIBLE : break ; case INVISIBLE : visibility = Visibility . HIDDEN ; break ; } mIsVisibleInViewPort = viewportVisibility ; updateVisibility ( visibility ) ; } return visibilityIsChanged ; }
Set ViewPort visibility of the object .