android-lib/src/main/java/io/v/android/v23/V.java
/**
     * Initializes the Vanadium environment and creates a new base Vanadium context for the given
     * Android context and the given options.  This method may be called multiple times for
     * an Android context: in each invocation, a different base context will be returned.
     * <p>
     * {@link VContext#cancel() Canceling} the returned context will release all the Vanadium
     * resources associated with the Android context.  Forgetting to cancel the context will
     * therefore result in memory leaks of those resources.
     * <p>
     * See class docs for the expected usage pattern.
     * <p>
     * A caller may pass the following option that specifies the runtime implementation to be used:
     * <p><ul>
     *     <li>{@link io.v.v23.OptionDefs#RUNTIME}</li>
     * </ul><p>
     * <p>
     * If this option isn't provided, the default runtime implementation is used.
     *
     * @param  androidCtx  Android application context
     * @param  opts        options for the default runtime
     * @return             base context
     */
Initializes the Vanadium environment and creates a new base Vanadium context for the given
Android context and the given options.  This method may be called multiple times for
an Android context: in each invocation, a different base context will be returned.

VContext#cancel() Canceling the returned context will release all the Vanadium
resources associated with the Android context.  Forgetting to cancel the context will
therefore result in memory leaks of those resources.

See class docs for the expected usage pattern.

A caller may pass the following option that specifies the runtime implementation to be used:

 io.v.v23.OptionDefs#RUNTIME


If this option isn't provided, the default runtime implementation is used.

@param  androidCtx  Android application context
@param  opts        options for the default runtime
@return             base context
Initializes the Vanadium environment and creates a new base Vanadium context for the given Android context and the given options . This method may be called multiple times for an Android context : in each invocation a different base context will be returned . VContext#cancel () Canceling the returned context will release all the Vanadium resources associated with the Android context . Forgetting to cancel the context will therefore result in memory leaks of those resources . See class docs for the expected usage pattern . A caller may pass the following option that specifies the runtime implementation to be used : io . v . v23 . OptionDefs#RUNTIME If this option isn ' t provided the default runtime implementation is used . @param androidCtx Android application context @param opts options for the default runtime @return base context
public static VContext init(Context androidCtx, Options opts) {
        Preconditions.checkArgument(androidCtx != null);
        VContext ctx = initGlobal(androidCtx, opts);
        ctx = initAndroidLocal(ctx, androidCtx, opts);
        return ctx.withCancel();
    }
public static VContext init ( Context androidCtx , Options opts ) { Preconditions . checkArgument ( androidCtx != null ) ; VContext ctx = initGlobal ( androidCtx , opts ) ; ctx = initAndroidLocal ( ctx , androidCtx , opts ) ; return ctx . withCancel ( ) ; }
Initializes the Vanadium environment and creates a new base Vanadium context for the given
 Android context and the given options.
Initializes the Vanadium environment and creates a new base Vanadium context for the given Android context and the given options .