RemoteInput.Builder.SetAllowDataType(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether the user can provide arbitrary values.
[Android.Runtime.Register("setAllowDataType", "(Ljava/lang/String;Z)Landroid/app/RemoteInput$Builder;", "", ApiSince=26)]
public Android.App.RemoteInput.Builder SetAllowDataType(string mimeType, bool doAllow);
[<Android.Runtime.Register("setAllowDataType", "(Ljava/lang/String;Z)Landroid/app/RemoteInput$Builder;", "", ApiSince=26)>]
member this.SetAllowDataType : string * bool -> Android.App.RemoteInput.Builder
Parameters
- mimeType
- String
String: A mime type that results are allowed to come in. Be aware that text results (see setAllowFreeFormInput(boolean) are allowed by default. If you do not want text results you will have to pass false to setAllowFreeFormInput This value cannot be null.
- doAllow
- Boolean
boolean: Whether the mime type should be allowed or not
Returns
this object for method chaining. This value cannot be null.
- Attributes
Remarks
Specifies whether the user can provide arbitrary values. This allows an input to accept non-textual values. Examples of usage are an input that wants audio or an image.
Android reference for android.app.RemoteInput.Builder.setAllowDataType.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.