Documentation ¶
Index ¶
- func BuildUserAgent(appVersion, userLocale string, device DeviceInterface) string
- type Device
- func (d *Device) GetAndroidRelease() string
- func (d *Device) GetAndroidVersion() string
- func (d *Device) GetBrand() *string
- func (d *Device) GetCPU() string
- func (d *Device) GetDPI() string
- func (d *Device) GetDevice() string
- func (d *Device) GetDeviceString() string
- func (d *Device) GetManufacturer() string
- func (d *Device) GetModel() string
- func (d *Device) GetResolution() string
- func (d *Device) GetUserAgent() string
- func (d *Device) SetDeviceString(device string)
- type DeviceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUserAgent ¶
func BuildUserAgent(appVersion, userLocale string, device DeviceInterface) string
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) GetAndroidRelease ¶
func (*Device) GetAndroidVersion ¶
func (*Device) GetDeviceString ¶
func (*Device) GetManufacturer ¶
func (*Device) GetResolution ¶
func (*Device) GetUserAgent ¶
func (*Device) SetDeviceString ¶
type DeviceInterface ¶
type DeviceInterface interface { GetDeviceString() string SetDeviceString(device string) GetManufacturer() string GetBrand() *string GetAndroidVersion() string GetAndroidRelease() string /*GetFBUserAgent() string*/ GetDPI() string GetResolution() string GetModel() string GetDevice() string GetCPU() string GetUserAgent() string }
Click to show internal directories.
Click to hide internal directories.