When creating a session, can I use newer Sport types (e.g. SPORT_SAILING) on watches that do not support SDK 3.x?
Thanks!
When creating a session, can I use newer Sport types (e.g. SPORT_SAILING) on watches that do not support SDK 3.x?
Thanks!
If the constant is documented to have been added in a newer version of the SDK, then you cannot refer to the symbolic name (SPORT_SAILING). Doing so would result in a Symbol Not Found error. You could theoretically use the value (32), but doing so would lead to undefined behavior... It might work, it might crash, or it might just sorta work in that the session will get created but sensor modes won't get set as you're expecting them to.
If I were you, I'd avoid doing this in any production software.
Thank you for the prompt reply. Can I check at runtime if the (e.g. "has") if the symbol has been defined?
Yes.
var hasSailing = Activity has :SPORT_SAILING;