FtcXtensible/src/main/java/org/ftccommunity/ftcxtensible/robot/RobotContext.java
@Override
    public void bindAppContext(Context context) throws IllegalArgumentException, IllegalStateException {
        if (context instanceof Activity) {
            appContext = context;
        } else {
            throw new IllegalArgumentException("Invalid context; it must be of an activity context type");
        }
    }
/**
     * Binds a new activity context to this
     *
     * @param context a non-null activity context
     * @throws IllegalStateException, IllegalArgumentException
     */
Binds a new activity context to this
@param context a non-null activity context
@throws IllegalStateException, IllegalArgumentException
Binds a new activity context to this @param context a non - null activity context @throws IllegalStateException IllegalArgumentException
@Override
    public void bindAppContext(Context context) throws IllegalArgumentException, IllegalStateException {
        if (context instanceof Activity) {
            appContext = context;
        } else {
            throw new IllegalArgumentException("Invalid context; it must be of an activity context type");
        }
    }
@ Override public void bindAppContext ( Context context ) throws IllegalArgumentException , IllegalStateException { if ( context instanceof Activity ) { appContext = context ; } else { throw new IllegalArgumentException ( "Invalid context; it must be of an activity context type" ) ; } }
Binds a new activity context to this
 @param context a non-null activity context
 @throws IllegalStateException, IllegalArgumentException
Binds a new activity context to this @param context a non - null activity context @throws IllegalStateException IllegalArgumentException