IConsumer.AndThen(IConsumer) 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.
Returns a composed Consumer that performs, in sequence, this
operation followed by the after operation.
[Android.Runtime.Register("andThen", "(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;", "GetAndThen_Ljava_util_function_Consumer_Handler:Java.Util.Functions.IConsumer, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual Java.Util.Functions.IConsumer? AndThen(Java.Util.Functions.IConsumer? after);
[<Android.Runtime.Register("andThen", "(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;", "GetAndThen_Ljava_util_function_Consumer_Handler:Java.Util.Functions.IConsumer, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member AndThen : Java.Util.Functions.IConsumer -> Java.Util.Functions.IConsumer
override this.AndThen : Java.Util.Functions.IConsumer -> Java.Util.Functions.IConsumer
Parameters
- after
- IConsumer
the operation to perform after this operation
Returns
a composed Consumer that performs in sequence this
operation followed by the after operation
- Attributes
Remarks
Returns a composed Consumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
Java documentation for java.util.function.Consumer.andThen(java.util.function.Consumer<? super T>).
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.