ARInterface: getting ARTrackingState

This is prob due to my limited C# knowledge, but I just cannot get the contents of ARTrackingState in my script.
I have:
ARTrackingState state = new ARTrackingState();
and in Update()

Debug.Log ("tracking state  "+state);

But in Xcode it always returns:
ARTrackingStateNotAvailable

how do I get the current tracking state?

I don’t think this was actually exposed in ARInterface. I would get it directly from the ARKit or ARCore plugins.

For ARCore
For ARKit