iOS Question How to find methods, fields etc of an object for use with Native Object

JackKirk

Well-Known Member
Licensed User
Longtime User
Somewhere in the back of my brain I think I have seen an answer to this - no amount of searching the forums has turned it up though.

How can I find the methods, fields etc of an object so I can operate on them with native object.

I am particularly interested in the Motion object.

Thanks...
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Hi Jan,

I had already found the documentation you point to above - thanks anyway for your speedy response.

The reason for the question is my confusion - if you look at Erels MotionWithGravity example at:

https://www.b4x.com/android/forum/t...eration-with-motion-object.49305/#post-452290

He uses:
B4X:
Dim gravity As List = no.RunMethod("getGravity:", Array(mot))
Dim gyro As List = no.RunMethod("getGyro:", Array(mot))
Dim magfld As List = no.RunMethod("getMagField:", Array(mot))
Dim magacc As List = no.RunMethod("getMagAccuracy:", Array(mot))

But I can find no reference to getGravity, getGyro, getMagField or getMagAccuracy in the documentation you so rightly point to.

Any pointers appreciated...
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Erel, Jan,

My complete abject apologies for wasting your time.

Researching for my answer to Erel's post #4 I realized what I was doing wrong - the "get..." methods I was referring to in post #3 are to inline objective C code - for anyone who is interested have a look at the bottom of Erels code in MotionWithGravity.zip at:

https://www.b4x.com/android/forum/t...eration-with-motion-object.49305/#post-452290

In my defence I am trying to manage 3 projects: 1 x B4A, 1 x B4i and 1 x embryonic...
 
Last edited:
Upvote 0
Top