Skip to content

Instantly share code, notes, and snippets.

View codetgh's full-sized avatar
💭
Working on creating something awesome in Android.

sumit kumar codetgh

💭
Working on creating something awesome in Android.
View GitHub Profile
class OnSwipeTouchListener(ctx: Context) : View.OnTouchListener {
private val gestureDetector: GestureDetector
private var onSwipeCallback: OnSwipeCallback? = null
private var isViewGroup: Boolean = false
init {
onSwipeCallback = ctx as FlashbackActivityNew
gestureDetector = GestureDetector(ctx, GestureListener())
@codetgh
codetgh / CurlClass.php
Created June 18, 2020 14:17
PHP Util class to call external REST web API
<?php
class CurlClass {
private $url;
private $method;
private $data;
private $curlGlobal;
function __construct($url, $method, $data) {
$this->url = $url;
$this->method = $method;
$this->data = $data;