PHP 7.4.33
Preview: RCTBackedTextInputDelegate.h Size: 1.70 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#import <UIKit/UIKit.h>

@protocol RCTBackedTextInputViewProtocol;

NS_ASSUME_NONNULL_BEGIN

@protocol RCTBackedTextInputDelegate <NSObject>

- (BOOL)textInputShouldBeginEditing; // Return `NO` to disallow editing.
- (void)textInputDidBeginEditing;

- (BOOL)textInputShouldEndEditing; // Return `YES` to allow editing to stop and to resign first responder status. `NO`
                                   // to disallow the editing session to end.
- (void)textInputDidEndEditing; // May be called if forced even if `textInputShouldEndEditing` returns `NO` (e.g. view
                                // removed from window) or `[textInput endEditing:YES]` called.

- (BOOL)textInputShouldReturn; // May be called right before `textInputShouldEndEditing` if "Return" button was pressed.
                               // Dismisses keyboard if true
- (void)textInputDidReturn;

- (BOOL)textInputShouldSubmitOnReturn; // Checks whether to submit when return is pressed and emits an event if true.

/*
 * Called before any change in the TextInput. The delegate has the opportunity to change the replacement string or
 * reject the change completely. To change the replacement, return the changed version of the `text`. To accept the
 * change, return `text` argument as-is. To reject the change, return `nil`.
 */
- (NSString *)textInputShouldChangeText:(NSString *)text inRange:(NSRange)range;
- (void)textInputDidChange;

- (void)textInputDidChangeSelection;

@optional

- (void)scrollViewDidScroll:(UIScrollView *)scrollView;

@end

NS_ASSUME_NONNULL_END

Directory Contents

Dirs: 2 × Files: 20
Name Size Perms Modified Actions
Multiline DIR
- drwxr-xr-x 2025-03-28 11:04:43
Edit Download
- drwxr-xr-x 2025-03-28 11:04:43
Edit Download
1.70 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1020 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
9.99 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
2.86 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
691 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
11.40 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
2.36 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
31.96 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
297 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
6.91 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
285 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
539 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
373 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.91 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
271 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.37 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
288 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
655 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
617 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
770 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).