Android Open Source - nova-android-sdk Nova Link Status






From Project

Back to project page nova-android-sdk.

License

The source code is released under:

Apache License

If you think the Android project nova-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright (C) 2013-2014 Sneaky Squid LLC.
 */*  www  . j  a v  a 2s  .  c o  m*/
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.sneakysquid.nova.link;

/**
 * States of Nova link.
 *
 * @see NovaLink#getStatus()
 * @see NovaLinkStatusCallback
 *
 * @author Joe Walnes
 */
public enum NovaLinkStatus {

    /**
     * BluetoothLE is not available on this device. This could be because the device does
     * not support it, or the user has not enabled it in their settings.
     */
    Disabled,

    /**
     * No devices are connected and nothing is being scanned for. Just chillin.
     */
    Idle,

    /**
     * No devices are connected, but we're currently scanning for some.
     */
    Scanning,

    /**
     * Device(s) found and attempting to establish a connection.
     */
    Connecting,

    /**
     * Connection to device is ready and waiting for flashes. Yay.
     */
    Ready

}




Java Source Code List

com.sneakysquid.nova.link.BluetoothLENovaLink.java
com.sneakysquid.nova.link.Debug.java
com.sneakysquid.nova.link.NovaCompletionCallback.java
com.sneakysquid.nova.link.NovaFlashCommand.java
com.sneakysquid.nova.link.NovaLinkStatusCallback.java
com.sneakysquid.nova.link.NovaLinkStatus.java
com.sneakysquid.nova.link.NovaLink.java
com.sneakysquid.nova.testapp.MainActivity.java
com.sneakysquid.nova.testapp.TestControlsFragment.java