c# - How to use InvokePattern on Xamarin Android? -




i trying use invokepattern method in xamarin android in order change pattern of polyline. method definition following:

public polylineoptions invokepattern(ilist<patternitem> pattern); 

i have tried doing this:

var polyline = new polylineoptions(); polyline.invokepattern(new patternitem()); 

but doesn't work. how can set pattern to, example, "gap"?

i have found solution. following code works me:

var list = new list<patternitem>(); list.add(new patternitem(1, java.lang.float.valueof(2))); polylineoptions.invokepattern(list); 

you can change pattern patternitem's first overload. 0 default (straight line) , 1 pointed line. second overload size of gaps





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -