C# Class Hal.Device

Mostrar archivo Open project: mono/hal-sharp Class Usage Examples

Public Methods

Method Description
AddCapability ( string capability ) : bool
Device ( Context ctx, string udi ) : System
DeviceExists ( Context ctx, string udi ) : bool
EmitCondition ( string conditionName, string conditionDetails ) : bool
FindByCapability ( Context ctx, string cap ) : Hal.Device[]
FindByStringMatch ( Context ctx, string key, string val ) : Hal.Device[]
FindUdiByCapability ( Context ctx, string cap ) : string[]
FindUdiByStringMatch ( Context ctx, string key, string val ) : string[]
FindUdis ( Context ctx, FindBy findMethod, string key, string query ) : string[]
GetAll ( Context ctx ) : Hal.Device[]
GetAllUdis ( Context ctx ) : string[]
GetPropertyBool ( string key ) : bool
GetPropertyDouble ( string key ) : double
GetPropertyInt ( string key ) : int
GetPropertyString ( string key ) : string
GetPropertyStringList ( string key ) : string[]
GetPropertyUint64 ( string key ) : System.UInt64
Lock ( string reason ) : void
Print ( ) : void
PropertyExists ( string key ) : bool
PropertyStringListAppend ( string key, string val ) : bool
PropertyStringListPrepend ( string key, string val ) : bool
PropertyStringListRemove ( string key, string val ) : bool
PropertyStringListRemoveIndex ( string key, uint index ) : bool
QueryCapability ( string capability ) : bool
Reprobe ( ) : bool
Rescan ( ) : bool
SetPropertyBool ( string key, bool val ) : bool
SetPropertyDouble ( string key, double val ) : bool
SetPropertyInt ( string key, int val ) : bool
SetPropertyString ( string key, System.UInt64 val ) : bool
SetPropertyString ( string key, string val ) : bool
ToString ( ) : string
UdisToDevices ( Context ctx, string udis ) : Hal.Device[]
Unlock ( ) : bool
this ( string key ) : string

Method Details

AddCapability() public method

public AddCapability ( string capability ) : bool
capability string
return bool

Device() public method

public Device ( Context ctx, string udi ) : System
ctx Context
udi string
return System

DeviceExists() public static method

public static DeviceExists ( Context ctx, string udi ) : bool
ctx Context
udi string
return bool

EmitCondition() public method

public EmitCondition ( string conditionName, string conditionDetails ) : bool
conditionName string
conditionDetails string
return bool

FindByCapability() public static method

public static FindByCapability ( Context ctx, string cap ) : Hal.Device[]
ctx Context
cap string
return Hal.Device[]

FindByStringMatch() public static method

public static FindByStringMatch ( Context ctx, string key, string val ) : Hal.Device[]
ctx Context
key string
val string
return Hal.Device[]

FindUdiByCapability() public static method

public static FindUdiByCapability ( Context ctx, string cap ) : string[]
ctx Context
cap string
return string[]

FindUdiByStringMatch() public static method

public static FindUdiByStringMatch ( Context ctx, string key, string val ) : string[]
ctx Context
key string
val string
return string[]

FindUdis() public static method

public static FindUdis ( Context ctx, FindBy findMethod, string key, string query ) : string[]
ctx Context
findMethod FindBy
key string
query string
return string[]

GetAll() public static method

public static GetAll ( Context ctx ) : Hal.Device[]
ctx Context
return Hal.Device[]

GetAllUdis() public static method

public static GetAllUdis ( Context ctx ) : string[]
ctx Context
return string[]

GetPropertyBool() public method

public GetPropertyBool ( string key ) : bool
key string
return bool

GetPropertyDouble() public method

public GetPropertyDouble ( string key ) : double
key string
return double

GetPropertyInt() public method

public GetPropertyInt ( string key ) : int
key string
return int

GetPropertyString() public method

public GetPropertyString ( string key ) : string
key string
return string

GetPropertyStringList() public method

public GetPropertyStringList ( string key ) : string[]
key string
return string[]

GetPropertyUint64() public method

public GetPropertyUint64 ( string key ) : System.UInt64
key string
return System.UInt64

Lock() public method

public Lock ( string reason ) : void
reason string
return void

Print() public method

public Print ( ) : void
return void

PropertyExists() public method

public PropertyExists ( string key ) : bool
key string
return bool

PropertyStringListAppend() public method

public PropertyStringListAppend ( string key, string val ) : bool
key string
val string
return bool

PropertyStringListPrepend() public method

public PropertyStringListPrepend ( string key, string val ) : bool
key string
val string
return bool

PropertyStringListRemove() public method

public PropertyStringListRemove ( string key, string val ) : bool
key string
val string
return bool

PropertyStringListRemoveIndex() public method

public PropertyStringListRemoveIndex ( string key, uint index ) : bool
key string
index uint
return bool

QueryCapability() public method

public QueryCapability ( string capability ) : bool
capability string
return bool

Reprobe() public method

public Reprobe ( ) : bool
return bool

Rescan() public method

public Rescan ( ) : bool
return bool

SetPropertyBool() public method

public SetPropertyBool ( string key, bool val ) : bool
key string
val bool
return bool

SetPropertyDouble() public method

public SetPropertyDouble ( string key, double val ) : bool
key string
val double
return bool

SetPropertyInt() public method

public SetPropertyInt ( string key, int val ) : bool
key string
val int
return bool

SetPropertyString() public method

public SetPropertyString ( string key, System.UInt64 val ) : bool
key string
val System.UInt64
return bool

SetPropertyString() public method

public SetPropertyString ( string key, string val ) : bool
key string
val string
return bool

ToString() public method

public ToString ( ) : string
return string

UdisToDevices() public static method

public static UdisToDevices ( Context ctx, string udis ) : Hal.Device[]
ctx Context
udis string
return Hal.Device[]

Unlock() public method

public Unlock ( ) : bool
return bool

this() public method

public this ( string key ) : string
key string
return string