• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ContextWrapperDependent类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中ioio.lib.util.android.ContextWrapperDependent的典型用法代码示例。如果您正苦于以下问题:Java ContextWrapperDependent类的具体用法?Java ContextWrapperDependent怎么用?Java ContextWrapperDependent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ContextWrapperDependent类属于ioio.lib.util.android包,在下文中一共展示了ContextWrapperDependent类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onCreate() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
		if (bootstrap instanceof ContextWrapperDependent) {
			((ContextWrapperDependent) bootstrap).onCreate(this);
		}
	}
}
 

开发者ID:jrieke,
项目名称:ioiometer,
代码行数:14,
代码来源:AbstractIOIOActivity.java

示例2: onDestroy

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onDestroy() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onDestroy() {
	for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
		if (bootstrap instanceof ContextWrapperDependent) {
			((ContextWrapperDependent) bootstrap).onDestroy();
		}
	}
	super.onDestroy();
}
 

开发者ID:jrieke,
项目名称:ioiometer,
代码行数:14,
代码来源:AbstractIOIOActivity.java

示例3: onStart

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onStart() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onStart() {
	super.onStart();
	for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
		if (bootstrap instanceof ContextWrapperDependent) {
			((ContextWrapperDependent) bootstrap).open();
		}
	}
	createAllThreads();
	startAllThreads();
}
 

开发者ID:jrieke,
项目名称:ioiometer,
代码行数:16,
代码来源:AbstractIOIOActivity.java

示例4: onStop

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onStop() if overloaded.
 * It takes care of disconnecting from the IOIO.
 */
@Override
protected void onStop() {
	abortAllThreads();
	try {
		joinAllThreads();
	} catch (InterruptedException e) {
	}
	for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
		if (bootstrap instanceof ContextWrapperDependent) {
			((ContextWrapperDependent) bootstrap).close();
		}
	}
	super.onStop();
}
 

开发者ID:jrieke,
项目名称:ioiometer,
代码行数:19,
代码来源:AbstractIOIOActivity.java

示例5: onNewIntent

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
@Override
protected void onNewIntent(Intent intent) {
	super.onNewIntent(intent);
	if ((intent.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK) != 0) {
		for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
			if (bootstrap instanceof ContextWrapperDependent) {
				((ContextWrapperDependent) bootstrap).open();
			}
		}
	}
}
 

开发者ID:jrieke,
项目名称:ioiometer,
代码行数:12,
代码来源:AbstractIOIOActivity.java

示例6: onCreate

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onCreate() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
        if (bootstrap instanceof ContextWrapperDependent) {
            ((ContextWrapperDependent) bootstrap).onCreate(this);
        }
    }
}
 

开发者ID:flyver,
项目名称:Flyver-Apps,
代码行数:14,
代码来源:AbstractIOIOActivity.java

示例7: onDestroy

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onDestroy() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onDestroy() {
    for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
        if (bootstrap instanceof ContextWrapperDependent) {
            ((ContextWrapperDependent) bootstrap).onDestroy();
        }
    }
    super.onDestroy();
}
 

开发者ID:flyver,
项目名称:Flyver-Apps,
代码行数:14,
代码来源:AbstractIOIOActivity.java

示例8: onStart

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onStart() if
 * overloaded. It takes care of connecting with the IOIO.
 */
@Override
protected void onStart() {
    super.onStart();
    for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
        if (bootstrap instanceof ContextWrapperDependent) {
            ((ContextWrapperDependent) bootstrap).open();
        }
    }
    createAllThreads();
    startAllThreads();
}
 

开发者ID:flyver,
项目名称:Flyver-Apps,
代码行数:16,
代码来源:AbstractIOIOActivity.java

示例9: onStop

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
/**
 * Subclasses should call this method from their own onStop() if overloaded.
 * It takes care of disconnecting from the IOIO.
 */
@Override
protected void onStop() {
    abortAllThreads();
    try {
        joinAllThreads();
    } catch (InterruptedException e) {
    }
    for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
        if (bootstrap instanceof ContextWrapperDependent) {
            ((ContextWrapperDependent) bootstrap).close();
        }
    }
    super.onStop();
}
 

开发者ID:flyver,
项目名称:Flyver-Apps,
代码行数:19,
代码来源:AbstractIOIOActivity.java

示例10: onNewIntent

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
@Override
protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    if ((intent.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK) != 0) {
        for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
            if (bootstrap instanceof ContextWrapperDependent) {
                ((ContextWrapperDependent) bootstrap).open();
            }
        }
    }
}
 

开发者ID:flyver,
项目名称:Flyver-Apps,
代码行数:12,
代码来源:AbstractIOIOActivity.java

示例11: PIOIOManager

点赞 2

import ioio.lib.util.android.ContextWrapperDependent; //导入依赖的package包/类
public PIOIOManager(PApplet wrapper, IOIOLooperProvider provider) {
    super(wrapper, provider);
    
    Collection<IOIOConnectionBootstrap> bootstraps_ = IOIOConnectionRegistry.getBootstraps();
    for (IOIOConnectionBootstrap bootstrap : bootstraps_) {
        if (bootstrap instanceof ContextWrapperDependent) {
            ((ContextWrapperDependent) bootstrap).onCreate(wrapper);
        }
    }
}
 

开发者ID:PinkHatSpike,
项目名称:pioio,
代码行数:11,
代码来源:PIOIOManager.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)