Hello everyone,
I have faced with problem of my class importing:
I had following class in source:
using Toybox.Application; class AppProperty{ function initialize(){ } function getValue(value){ if(Application has :Storage) {return Application.Properties.getValue(value); } else { return Application.getApp().getProperty(value); } } }
Another class BackgroundDrawable.mc in source/drawable has instance of class AppProperty:
using Toybox.Graphics; using Toybox.WatchUi as Ui; using Toybox.System; using AppProperty; class BackgroundDrawable extends Ui.Drawable { private var clockBackgroudColor = AppProperty().getValue("ClockBacgroundColor"); private var avtivityBackgroudColor = AppProperty().getValue("ActivityBackgroundColor"); .... }
When I run project following error occurred:
Invalid symbol "AppProperty" used in the context of a function invocation. No function exists with the given symbol name.
Thanks