protected override void OnTerminate() { base.OnTerminate(); if (_platform != null) { _platform.Dispose(); } }
internal static ITizenPlatform CreatePlatform(EvasObject parent) { ITizenPlatform platform = PreloadedPlatform.GetInstalce(parent); if (Forms.Flags.Contains(Flags.LightweightPlatformExperimental)) { platform?.Dispose(); platform = new LightweightPlatform(parent); } else { platform = platform ?? new DefaultPlatform(parent); } return(platform); }