internal void Initialize(Context context) { BeforeInitialize?.Invoke(this, new EventArgs()); Bindings.FabricSdk.Fabric.With(new Bindings.FabricSdk.Fabric.Builder(context) .Kits(Kits.Select(i => i.ToNative()).ToArray()) .Debuggable(Debug) .Build()); AfterInitialize?.Invoke(this, new EventArgs()); }
internal void Initialize() { BeforeInitialize?.Invoke(this, new EventArgs()); var nativeKits = new List <NSObject>(); foreach (var kit in Kits) { nativeKits.Add(kit.ToNative()); } Bindings.FabricSdk.Fabric.With(nativeKits.ToArray()); AfterInitialize?.Invoke(this, new EventArgs()); }
public void Initialize(EdgeBarPage edgeBarPage) { if (edgeBarPage == null) { throw new ArgumentNullException("edgeBarPage"); } if (_edgeBarPage != null) { throw new InvalidOperationException("Control has already been initialized."); } _edgeBarPage = edgeBarPage; AfterInitialize?.Invoke(this, null); }
internal void Initialize() { BeforeInitialize?.Invoke(this, new EventArgs()); Bindings.FabricSdk.Fabric.With(Kits.Select(i => i.ToNative()).ToArray()); AfterInitialize?.Invoke(this, new EventArgs()); }