我已经使用DependencyService来获取带有long,lat等的自定义位置类。这是类:
public class CurrentLocation
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public double Altitude { get; set; }
public float Accuracy { get; set; }
}
但我不明白如何将此值传递给WebView中的任何URL
答案 0 :(得分:2)
创建% Load the saved values
load data_peaks
% Plot the surface
h = surf(X,Y,Z);
% Set the parameters
h.AmbientStrength = AmbientStrength_val;
h.SpecularStrength = SpecularStrength_val;
h.DiffuseStrength = DiffuseStrength_val;
h.BackFaceLighting = BackFaceLighting_val;
h.FaceLighting = FaceLighting_val;
view(view_val);
l = light('Position',light_pos,'Style',light_style,'Color',light_color);
时,您可以将其WebView
属性设置为URL。例如,在您的内容页面的构造函数中,
Source