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
private void OnEnable() | |
{ | |
ReplayKitManager.DidRecordingStateChange += DidRecordingStateChange; | |
} | |
private void OnDisable() | |
{ | |
ReplayKitManager.DidRecordingStateChange += DidRecordingStateChange; | |
} |
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
#!/bin/bash | |
# Install the Build and Test Dependencies | |
apt-get update | |
apt-get install -y curl build-essential tcl | |
# Download and Extract the Source Code | |
cd /tmp | |
curl -O http://download.redis.io/redis-stable.tar.gz | |
tar xzvf redis-stable.tar.gz |
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
webView.setOnTouchListener(new View.OnTouchListener() | |
{ | |
@Override | |
public boolean onTouch(View v, MotionEvent event) | |
{ | |
int actionEvent = event.getAction(); | |
switch (actionEvent) | |
{ | |
case MotionEvent.ACTION_DOWN: | |
case MotionEvent.ACTION_UP: |
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
package com.voxelbusters.nativeplugins.helpers; | |
import android.app.Activity; | |
import android.graphics.Rect; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.ViewTreeObserver; | |
import android.view.WindowManager; | |
import com.voxelbusters.nativeplugins.helpers.interfaces.IKeyboardListener; |
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
public static bool Contains (this Rect _rect1, Rect _rect2) | |
{ | |
if ((_rect1.position.x <= _rect2.position.x) && | |
(_rect1.position.x + _rect1.size.x) >= (_rect2.position.x + _rect2.size.x) && | |
(_rect1.position.y <= _rect2.position.y) && | |
(_rect1.position.y + _rect1.size.y) >= (_rect2.position.y + _rect2.size.y)) | |
{ | |
return true; | |
} | |
else |
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
Passing values as JSON | |
"SCORES_PER_TURN_ATTRIBUTE": "{\"SCORES\" : [1000,3000,6000]}" |