code: def getVisibility(self):
          '''
          Gets the View visibility
          '''
  
          try:
              if self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                  return VISIBLE
              elif self.map[GET_VISIBILITY_PROPERTY] == 'INVISIBLE':
                  return INVISIBLE
              elif self.map[GET_VISIBILITY_PROPERTY] == 'GONE':
                  return GONE
              else:
                  return -2
          except:
              return -f getVisibility(self):
          '''
          Gets the View visibility
          '''
  
          try:
              if self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                  return VISIBLE
              elif self.map[GET_VISIBILITY_PROPERTY] == 'INVISIBLE':
                  return INVISIBLE
              elif self.map[GET_VISIBILITY_PROPERTY] == 'GONE':
                  return GONE
              else:
                  return -2
          except:
              return -1
docs: Gets the View visibility