public static void MapText(IEntryHandler handler, IEntry entry) { handler.PlatformView?.UpdateText(entry); // Any text update requires that we update any attributed string formatting MapFormatting(handler, entry); }
public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry) { if (handler is EntryHandler platformHandler) { handler.PlatformView?.UpdateClearButtonVisibility(entry, platformHandler.GetClearButtonDrawable); } }
public static void MapPlaceholderColor(IEntryHandler handler, IEntry entry) { if (handler is EntryHandler platformHandler) { handler.PlatformView?.UpdatePlaceholderColor(entry); } }
public static void MapFormatting(IEntryHandler handler, IEntry entry) { // Update all of the attributed text formatting properties // Setting any of those may have removed text alignment settings, // so we need to make sure those are applied, too handler.PlatformView?.UpdateMaxLength(entry); handler.PlatformView?.UpdateHorizontalTextAlignment(entry); }
public IHttpActionResult CaptureLead(AllFieldCapture lead, string product) { //NameValueCollection nvc = form.ReadAsNameValueCollection(); _entryHandler = new EntryHandler("mortgage"); _entryHandler.CaptureLead(lead); return Ok(); }
public static void MapSelectionLength(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateSelectionLength(entry);
public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateCharacterSpacing(entry);
public static void MapCursorPosition(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateCursorPosition(entry);
public static void MapFont(IEntryHandler handler, IEntry entry) { var fontManager = handler.GetRequiredService <IFontManager>(); handler.PlatformView?.UpdateFont(entry, fontManager); }
public static void MapReturnType(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateReturnType(entry);
public static void MapTextColor(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateTextColor(entry);
public static void MapHorizontalTextAlignment(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateHorizontalTextAlignment(entry);
public static void MapCursorPosition(IEntryHandler handler, IEntry entry) { }
public static void MapIsTextPredictionEnabled(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateIsTextPredictionEnabled(entry);
public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry) { }
public static void MapBackground(IEntryHandler handler, IEntry entry) { handler.UpdateValue(nameof(handler.ContainerView)); handler.ToPlatform()?.UpdateBackground(entry); }
public static void MapCursorPosition(IEntryHandler handler, IEntry entry) { handler.PlatformView?.UpdateSelectionLength(entry); }
public static void MapSelectionLength(IEntryHandler handler, IEntry entry) { }
public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry) { handler.PlatformView?.UpdateClearButtonVisibility(entry); }
public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry) { }
public static void MapPlaceholder(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdatePlaceholder(entry);
public static void MapBackground(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateBackground(entry);
public static void MapReturnType(IEntryHandler handler, IEntry entry) { }
public static void MapIsPassword(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateIsPassword(entry);
public static void MapKeyboard(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateKeyboard(entry);
public static void MapVerticalTextAlignment(IEntryHandler handler, IEntry entry) => handler?.PlatformView?.UpdateVerticalTextAlignment(entry);
public static void MapText(IEntryHandler handler, IEntry entry) { }
public static void MapMaxLength(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateMaxLength(entry);
public static void MapFont(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateFont(entry, handler.GetRequiredService <IFontManager>());
public static void MapIsReadOnly(IEntryHandler handler, IEntry entry) => handler.PlatformView?.UpdateIsReadOnly(entry);
public static void MapKeyboard(IEntryHandler handler, IEntry entry) { }