INNER CODE UNIT · C

textJS

Qfusion/qfusion · source/android/android_clipboard.c:35

	textJS = ( *env )->CallObjectMethod( env, sys_android_app->activity->clazz, getClipboardData );
	if( !textJS ) {
		return NULL;
	}

	textUTF = ( *env )->GetStringUTFChars( env, textJS, NULL );
	text = Q_malloc( strlen( textUTF ) + 1 );
	strcpy( text, textUTF );
	( *env )->ReleaseStringUTFChars( env, textJS, textUTF );
	( *env )->DeleteLocalRef( env, textJS );
	return text;
}

bool Sys_SetClipboardData( const char *data ) {
	JNIEnv *env = Sys_Android_GetJNIEnv();
	jmethodID setClipboardData;
	jstring textJS;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…