{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Property canBeCancelled | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property canBeCancelled

    canBeCancelled

    Gets a value indicating whether a running operation for this command can currently be canceled.

    Declaration
    bool canBeCancelled { get; }
    Property Value
    Type Description
    bool
    Remarks

    The exact sequence of events that types implementing this interface should raise is as follows:

    • The command is initially not running: isRunning, canBeCancelled and isCancellationRequested are false.
    • The command starts running: isRunning and canBeCancelled switch to true. isCancellationRequested is set to false.
    • If the operation is canceled: canBeCancelled switches to false and isCancellationRequested switches to true.
    • The operation completes: isRunning and canBeCancelled switch to false. The state of isCancellationRequested is undefined.
    This only applies if the underlying logic for the command actually supports cancellation. If that is not the case, then canBeCancelled and isCancellationRequested will always remain false regardless of the current state of the command.
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)