This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$id": "https://tts.swlegion.dev/ObjectState.json", | |
"$schema": "http://json-schema.org/draft-07/schema", | |
"title": "ObjectState", | |
"type": "object", | |
"properties": { | |
"Name": { | |
"type": "string", | |
"default": "", | |
"description": "Internal object name." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
According to the Android lifecycle, clipboard contents cannot be accesed in either onCreate, onResume and neither onRestart. | |
As such, they can only be accessed when the activity's layout is fully formed | |
*/ | |
override fun onWindowFocusChanged(hasFocus: Boolean) { | |
super.onWindowFocusChanged(hasFocus) | |
if (hasFocus) { | |
val textToPaste: String = clipboard?.primaryClip?.getItemAt(0)?.text.toString().trim() | |
Log.d(TAG, textToPaste) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/sem.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/shm.h> |