I'd made a mistake in the Export - I had this:

[Export("getBatteryCapacity:capacity:voltage:error:")]

However, it's not returning the right values. Capacity should return 100 as 
it's fully charged, but it's returning 0.

Dino

From: Alex Soto [mailto:[email protected]]
Sent: Sunday, October 14, 2012 22:42
To: Dean Cleaver
Cc: [email protected] ([email protected])
Subject: Re: [MonoTouch] Correct Bindings


[Export("getBatteryCapacity:voltage:error:")]
bool GetBatteryCapacity(int capacity, float voltage, out NSError error);

thats it

Alex

El 14/10/2012, a las 22:29, Dean Cleaver 
<[email protected]<mailto:[email protected]>> 
escribió:


And this one?

- (BOOL) getBatteryCapacity:

(int *)

capacity

voltage:

(float *)

voltage

error:

(NSError **)

error


The capacity and voltage seem to be out or ref parameters from the way the 
method looks to work?

Dino

From: 
[email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Dean Cleaver
Sent: Sunday, October 14, 2012 16:29
To: [email protected]<mailto:[email protected]>
Subject: [MonoTouch] Correct Bindings

What would be the correct binding for this:

(id)

+ 
DTDevices::sharedDevice<x-msg://1682/group___g___l_n_g_e_n_e_r_a_l.html#ga37ce97057214339489590bc48b6862c0>


Creates and initializes new class instance or returns already initalized one.


Cheers,
Dino
_______________________________________________
MonoTouch mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to