2 instantiations of Platform
Microsoft.Maui.Controls.Compatibility (2)
Android\AppCompat\FormsAppCompatActivity.cs (1)
445 Platform = new Platform(this);
Android\AppCompat\PageExtensions.cs (1)
64 var platform = new Platform(context, true);
139 references to Platform
Microsoft.Maui.Controls.Compatibility (139)
Android\AppCompat\CarouselPageRenderer.cs (3)
84 IVisualElementRenderer pageRenderer = Platform.GetRenderer(pageToRemove); 91 pageToRemove.ClearValue(Platform.RendererProperty); 144 pager.Id = Platform.GenerateViewId();
Android\AppCompat\CheckBoxRendererBase.cs (2)
71 if (Platform.GetRenderer(Element) == this) 73 Element.ClearValue(Platform.RendererProperty);
Android\AppCompat\FlyoutPageContainer.cs (8)
10using APlatform = Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform; 34 Id = APlatform.GenerateViewId(); 55 IVisualElementRenderer renderer = APlatform.GetRenderer(_childView); 134 IVisualElementRenderer renderer = APlatform.GetRenderer(childView); 136 APlatform.SetRenderer(childView, renderer = APlatform.CreateRenderer(childView, Context)); 265 IVisualElementRenderer childRenderer = APlatform.GetRenderer(_childView); 267 _childView?.ClearValue(APlatform.RendererProperty);
Android\AppCompat\FlyoutPageRenderer.cs (1)
285 Element.ClearValue(Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform.RendererProperty);
Android\AppCompat\FormsAppCompatActivity.cs (1)
53 internal Platform Platform { get; private set; }
Android\AppCompat\FragmentContainer.cs (3)
59 _visualElementRenderer = Platform.CreateRenderer(Page, inflater.Context, ChildFragmentManager, inflater); 60 Platform.SetRenderer(Page, _visualElementRenderer); 91 Page?.ClearValue(Platform.RendererProperty);
Android\AppCompat\ImageButtonRenderer.cs (2)
114 if (Platform.GetRenderer(Element) == this) 116 Element.ClearValue(Platform.RendererProperty);
Android\AppCompat\NavigationPageRenderer.cs (11)
26using APlatform = Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform; 61 Platform _platform; 74 Id = Platform.GenerateViewId(); 80 Platform Platform 204 Platform.ClearRenderer(_titleViewRenderer.View); 286 IVisualElementRenderer renderer = Platform.GetRenderer(child); 651 var renderer = APlatform.GetRenderer(_flyoutPage) as FlyoutPageRenderer; 737 Platform.ClearRenderer(_titleViewRenderer.View); 1063 Platform.ClearRenderer(_titleViewRenderer.View); 1076 _titleViewRenderer = Platform.CreateRenderer(titleView, Context); 1087 Platform.SetRenderer(titleView, _titleViewRenderer);
Android\AppCompat\PageExtensions.cs (5)
15 readonly Platform _platform; 23 public EmbeddedFragment(ViewGroup content, Platform platform) 64 var platform = new Platform(context, true); 79 readonly Platform _platform; 87 public EmbeddedSupportFragment(ViewGroup content, Platform platform)
Android\AppCompat\Platform.cs (6)
36 internal static readonly BindableProperty RendererProperty = BindableProperty.CreateAttached("Renderer", typeof(IVisualElementRenderer), typeof(Platform), default(IVisualElementRenderer), 274 Application.Current?.FindMauiContext()?.CreateLogger<Platform>()?.LogWarning( 352 .LogWarning(Forms.MauiContext.CreateLogger<Platform>(), $"{e}"); 654 Id = Platform.GenerateViewId(); 718 public static implicit operator ViewGroup(Platform canvas) 731 Platform platformValue when destinationType == typeof(ViewGroup) => (ViewGroup)platformValue,
Android\AppCompat\RadioButtonRenderer.cs (2)
156 if (Platform.GetRenderer(Element) == this) 157 Element.ClearValue(Platform.RendererProperty);
Android\AppCompat\TabbedPageRenderer.cs (10)
54 Platform _platform; 61 Platform Platform 211 IVisualElementRenderer pageRenderer = Platform.GetRenderer(pageToRemove); 215 pageToRemove.ClearValue(Platform.RendererProperty); 277 Id = Platform.GenerateViewId() 285 pager.Id = Platform.GenerateViewId(); 307 pager.Id = Platform.GenerateViewId(); 366 IVisualElementRenderer renderer = Platform.GetRenderer(child); 598 IVisualElementRenderer leftRenderer = Platform.GetRenderer(leftPage); 614 IVisualElementRenderer rightRenderer = Platform.GetRenderer(rightPage);
Android\Cells\ViewCellRenderer.cs (8)
46 IVisualElementRenderer view = Platform.CreateRenderer(cell.View, context); 47 Platform.SetRenderer(cell.View, view); 85 _listViewRenderer = Platform.GetRenderer(listView) as ListViewRenderer; 186 var viewHandlerType = Registrar.Registered.GetHandlerTypeForObject(cell.View) ?? typeof(Platform.DefaultRenderer); 202 Platform.SetRenderer(cell.View, _view); 220 Platform.SetRenderer(_viewCell.View, null); 235 _view = Platform.CreateRenderer(_viewCell.View, Context); 237 Platform.SetRenderer(_viewCell.View, _view);
Android\CollectionView\IndicatorViewRenderer.cs (4)
119 if (Platform.GetRenderer(Element) == this) 121 Element.ClearValue(Platform.RendererProperty); 299 var renderer = indicatorLayout.GetRenderer() ?? Platform.CreateRendererWithContext(indicatorLayout, Context); 300 Platform.SetRenderer(indicatorLayout, renderer);
Android\CollectionView\ItemContentView.cs (2)
129 var renderer = Platform.CreateRenderer(view, context); 130 Platform.SetRenderer(view, renderer);
Android\CollectionView\ItemsViewRenderer.cs (2)
153 if (Platform.GetRenderer(Element) == this) 155 Element.ClearValue(Platform.RendererProperty);
Android\DragAndDropGestureHandler.cs (1)
256 var renderer = Platform.GetRenderer(element);
Android\Extensions\AccessibilityExtensions.cs (1)
73 id = Control.Id = Platform.GenerateViewId();
Android\FastRenderers\ButtonRenderer.cs (2)
187 if (Platform.GetRenderer(Element) == this) 188 Element.ClearValue(Platform.RendererProperty);
Android\FastRenderers\FrameRenderer.cs (3)
155 if (Platform.GetRenderer(Element) == this) 156 Element.ClearValue(Platform.RendererProperty); 208 IVisualElementRenderer renderer = Platform.GetRenderer(visualElement);
Android\FastRenderers\ImageRenderer.cs (2)
61 if (Platform.GetRenderer(_element) == this) 62 _element.ClearValue(Platform.RendererProperty);
Android\FastRenderers\LabelRenderer.cs (2)
211 if (Platform.GetRenderer(Element) == this) 212 Element.ClearValue(Platform.RendererProperty);
Android\PopupManager.cs (1)
265 var renderer = Platform.GetRenderer(page);
Android\RendererPool.cs (2)
63 IVisualElementRenderer renderer = Platform.GetRenderer(child); 76 Platform.SetRenderer(child, null);
Android\Renderers\BoxRenderer.cs (2)
131 if (Platform.GetRenderer(Element) == this) 132 Element.ClearValue(Platform.RendererProperty);
Android\Renderers\CarouselPageAdapter.cs (7)
60 IVisualElementRenderer renderer = Platform.GetRenderer(destroyedPage); 92 if (Platform.GetRenderer(child) == null) 93 Platform.SetRenderer(child, Platform.CreateRenderer(child, _context)); 95 IVisualElementRenderer renderer = Platform.GetRenderer(child); 133 IVisualElementRenderer childPageRenderer = Platform.GetRenderer(childPage); 138 Platform.SetRenderer(childPage, null);
Android\Renderers\ListViewAdapter.cs (4)
68 MessagingCenter.Subscribe<ListViewAdapter>(this, Platform.CloseContextActionsSignalName, lva => CloseContextActions()); 440 MessagingCenter.Unsubscribe<ListViewAdapter>(this, Platform.CloseContextActionsSignalName); 519 var renderer = Platform.GetRenderer(view); 522 element.ClearValue(Platform.RendererProperty);
Android\Renderers\ListViewRenderer.cs (8)
63 Platform.ClearRenderer(_headerRenderer.View); 73 Platform.ClearRenderer(_footerRenderer.View); 360 Platform.ClearRenderer(_footerRenderer.View); 373 _footerRenderer = Platform.CreateRenderer(footer, Context); 378 Platform.SetRenderer(footer, _footerRenderer); 392 Platform.ClearRenderer(_headerRenderer.View); 405 _headerRenderer = Platform.CreateRenderer(header, Context); 410 Platform.SetRenderer(header, _headerRenderer);
Android\Renderers\MotionEventHelper.cs (3)
26 var renderer = parent as Platform.DefaultRenderer; 70 if (Platform.GetRenderer(_element) is Platform.DefaultRenderer renderer)
Android\Renderers\PageContainer.cs (1)
18 Id = Platform.GenerateViewId();
Android\Renderers\PageRenderer.cs (1)
73 Id = Platform.GenerateViewId();
Android\Renderers\RefreshViewRenderer.cs (3)
75 IVisualElementRenderer renderer = Platform.GetRenderer(refreshViewContent); 120 _renderer = Platform.CreateRenderer(RefreshView.Content, Context); 122 Platform.SetRenderer(RefreshView.Content, _renderer);
Android\Renderers\ScrollViewContainer.cs (4)
36 if ((renderer = Platform.GetRenderer(_childView)) == null) 37 Platform.SetRenderer(_childView, renderer = Platform.CreateRenderer(_childView, Context)); 71 IVisualElementRenderer renderer = Platform.GetRenderer(_childView);
Android\Renderers\SwipeViewRenderer.cs (4)
383 var renderer = Element.Content.GetRenderer() ?? Platform.CreateRendererWithContext(Element.Content, Context); 384 Platform.SetRenderer(Element.Content, renderer); 855 var renderer = Platform.CreateRenderer(swipeItemView, _context); 856 Platform.SetRenderer(swipeItemView, renderer);
Android\ResourceManager.cs (1)
385 return IdFromTitle(title, resourceType, defType, resource, Platform.GetPackageName());
Android\StepperRendererManager.cs (2)
16 downButton.Id = Platform.GenerateViewId(); 19 upButton.Id = Platform.GenerateViewId();
Android\ViewRenderer.cs (1)
325 Control.Id = Platform.GenerateViewId();
Android\VisualElementExtensions.cs (1)
15 IVisualElementRenderer renderer = Platform.GetRenderer(self);
Android\VisualElementPackager.cs (7)
142 renderer = Platform.CreateRenderer(view, _renderer.View.Context); 148 renderer.Element?.ClearValue(Platform.RendererProperty); 153 Platform.SetRenderer(view, renderer); 179 IVisualElementRenderer r = Platform.GetRenderer(element); 225 lastRenderer = Platform.GetRenderer(last); 228 previousRenderer = Platform.GetRenderer(previous); 251 IVisualElementRenderer renderer = Platform.GetRenderer(view);
Android\VisualElementRenderer.cs (3)
244 if (Platform.GetRenderer(Element) == this) 245 Platform.SetRenderer(Element, null); 324 IVisualElementRenderer renderer = Platform.GetRenderer(visualElement);
AppHostBuilderExtensions.cs (1)
22using DefaultRenderer = Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform.DefaultRenderer;
RendererToHandlerShim.Android.cs (1)
8using static Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform;
RendererToHandlerShim.cs (1)
7using static Microsoft.Maui.Controls.Compatibility.Platform.Android.Platform;