According to the text <snort> of the actual law,
So, it's only while moving. And, an officer can't say, "Gimme your phone, you idiot," to check the text logs and verify that you were texting.
And, it's only text and e-mail messages. So, it's perfectly legal while operating a moving motor...