我可以仅将 Zebble 用于 UI 而将 Xamarin 用于其他一切吗

Can I use Zebble for only UI and use Xamarin for everything else

我只想使用 Zebble 来生成 UI 以及我想使用 Xamarin apis/custom http apis/local db 或其他任何东西的所有其他东西。基本上,带有 zebble 和其他东西的 UI 项目将在 PCL 中。

会兼容吗?能请教一下吗?

是的,你可以。 Zebble 中没有任何东西可以阻止您直接使用本机 APIs。

对于自定义 http 调用,我建议使用 HttpClient class,它在新创建的 Zebble 项目的所有 3 个平台中默认可用。

对于Device APIs,你当然可以使用每个平台的标准API classes,但是为了节省时间和实现100%的代码重用我强烈推荐使用http://zebble.net/docs/device-api。例如,如果你想使用 lamp(又名闪光灯、led 或手电筒),你可以很容易地在所有平台上用很少的代码实现它:

// Determines if a lamp feature is available on the device.
if (await Device.Torch.IsAvailable()) { ... }

// This will switch the lamp on.
await Device.Torch.TurnOn(); 

// This will switch the lamp off.
await Device.Torch.TurnOff();