Uri.getPort

Gets uri's port.

class Uri
int
getPort
()

Return Value

Type: int

uri's port, or -1 if no port was specified.