Select to view content in your preferred language

About SymbolStyle??

430
1
01-22-2018 01:25 AM
xipeng1
Emerging Contributor
When using custom Pro symbols in ArcGIS Runtime 100.2.0 for Android, I have to choose the constructor of DictionarySymbolStyle to create a new SymbolStyle from a style file(.stylx), which requires two parameters,like the following:
"SymbolStyle m_symbolStyle = new DictionarySymbolStyle("mil2525d", filepath);"
It looks a little weird, and I'm not sure if it is the best usage.
Does Runtime for Android have the method like "SymbolStyle.OpenAsync(string styleLocation)" in the .net version?
0 Kudos
1 Reply
GuntherHeppner
Esri Contributor

DictionarySymbolStyle is a loadable, i.e it implements the Loadable interface. After you have created your DictionarySymbolStyle with 

SymbolStyle m_symbolStyle = new DictionarySymbolStyle("mil2525d", filepath)

you can call m_symbolStyle.loadAsync() which is equivalent to the .Net call SymbolStyle.OpenAsync(string styleLocation).

0 Kudos