devices

package
v0.0.0-...-2422fc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 NewDevice

func NewDevice(appVersion, versionCode, userLocale string, deviceString *string, autoFallback bool) *Device

func (*Device) GetAndroidRelease

func (d *Device) GetAndroidRelease() string

func (*Device) GetAndroidVersion

func (d *Device) GetAndroidVersion() string

func (*Device) GetBrand

func (d *Device) GetBrand() *string

func (*Device) GetCPU

func (d *Device) GetCPU() string

func (*Device) GetDPI

func (d *Device) GetDPI() string

func (*Device) GetDevice

func (d *Device) GetDevice() string

func (*Device) GetDeviceString

func (d *Device) GetDeviceString() string

func (*Device) GetManufacturer

func (d *Device) GetManufacturer() string

func (*Device) GetModel

func (d *Device) GetModel() string

func (*Device) GetResolution

func (d *Device) GetResolution() string

func (*Device) GetUserAgent

func (d *Device) GetUserAgent() string

func (*Device) SetDeviceString

func (d *Device) SetDeviceString(device string)

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL