How to tell from class if running in watch face or app

Is there a function or property that I could call or reference from a module to tell if it is running in a watch face or app or something else? If it's in application or watchui I'm not finding it.