ViewPump 1.0.1

Install-Package ViewPump -Version 1.0.1
dotnet add package ViewPump --version 1.0.1
<PackageReference Include="ViewPump" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ViewPump --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ViewPump, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ViewPump as a Cake Addin
#addin nuget:?package=ViewPump&version=1.0.1

// Install ViewPump as a Cake Tool
#tool nuget:?package=ViewPump&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

License: Apache GitHub forks

ViewPump

ViewPump allows you to intercept the view inflation process. This library allows you to customize views on an app-wide scale without having to create sub-classes (although these are supported), both before and after the view itself has been inflated.

Heavily based on InflationX' ViewPump.

Getting Started

Install ViewPump from NuGet, or add a reference to ViewPump.

At the entry point for your app, call ViewPump.InterceptingService.Init(...). You can optionally provide your own IInterceptingService implementation.

Intercepting

The view inflation process can be intercepted with two methods:

Events

IInterceptingService provides two events: InflateRequested, and ViewInflated.

InflateRequested is triggered before a view is inflated, and ViewInflated is triggered after a view has been inflated. Both events provide custom event arguments that give you relevant information per the event. See Events.

IInterceptingDelegate

You can optionally provide an IInterceptingDelegate implementation by doing the following:

ViewPump.InterceptingService.Delegate = new MyCustomInterceptingDelegate();

The delegate gives you methods that provide you with the same information as the aforementioned events. The key difference, though, is that IInterceptingDelegate.OnInflateRequested returns a bool. This allows you to deny the inflation of particular views however, there may be side effects as a result of doing so.

Android sample project

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ViewPump:

Package Downloads
DialogMessaging

A customizable, cross platform, dialog messaging service for Xamarin.Android and Xamarin.iOS.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 68 10/15/2021
1.0.0 74 9/7/2021
0.99.0-alpha 80 4/30/2021
0.1.0 103 3/4/2021