Documentation ¶
Index ¶
Constants ¶
View Source
const ( Offline = "offline" Wifi = "wifi" Cellular = "cellular" Unknown = "unknown" None = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct { Offline bool `json:"offline"` Type Type `json:"type"` Expensive bool `json:"expensive"` }
State represents device connection state and type, as reported by mobile framework.
Zero value represents default assumption about network (online and unknown type).
func (State) IsExpensive ¶
type Type ¶ added in v0.97.4
type Type byte
Type represents description of available connection types as reported by React Native (see https://facebook.github.io/react-native/docs/netinfo.html) We're interested mainly in 'wifi' and 'cellular', but other types are also may be used.
Click to show internal directories.
Click to hide internal directories.