public String value() returns the site visibility as a
string.
Parameters
None
Returns
Returns the site visibility as a string. The string can be one of "PRIVATE", "MODERATED", or "PUBLIC".
Example
tv = (TextView) findViewById(R.id.site_visibility_value); tv.setText((CharSequence) site.getVisibility().value());
String visibility = site.getVisibility().value(); boolean isMember = site.isMember(); if (visibility.equalsIgnoreCase("PUBLIC") && !isMember) { ... }