Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
// Type definitions for non-npm package Titanium 9.0
// Project: https://github.com/appcelerator/titanium_mobile
// Definitions by: Axway Appcelerator <https://github.com/appcelerator>
// Jan Vennemann <https://github.com/janvennemann>
// Sergey Volkov <https://github.com/drauggres>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
type _Omit<T, K extends keyof any | undefined> = Pick<T, Exclude<keyof T, K>>;
type FunctionPropertyNames<T> = {
@drauggres
drauggres / Send_Intent.js
Created May 1, 2019 08:57
Titanium. Display a PNG file via an intent and external app
var window = Ti.UI.createWindow();
var button = Ti.UI.createButton({
title: "Send Intent",
});
button.addEventListener("click", function(e){
button.toImage(function(imageBlob) {
if (!imageBlob) {
return;
}
var targetFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "image.png");
@drauggres
drauggres / module-hook.js
Created January 22, 2019 09:39
Titanium build hook for android module
'use strict';
const path = require('path');
const spawn = require('child_process').spawn;
/** The plugin's identifier */
exports.id = 'android.module.hook';
/** The Titanium CLI version that this hook is compatible with */
exports.cliVersion = '>=3.2';
This file has been truncated, but you can view the full file.
/**
* @fileoverview Generated externs. DO NOT EDIT!
* @externs
*/
/**
* An extension of the [NSURLConnectionDelegate](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDelegate) protocol to allow users to participate in authentication and resource management for this HTTPClient.
* @typedef {{
* }}
*/
04d7ae51c3bfe454368d61404c2da6fc15948872525b24cd6b8f84615f88c0baffffcd8cc8e156c0dd71e07c92972594919166265e62842f8d7d8e05a87c931d97;m1ga
This file has been truncated, but you can view the full file.
/**
* @fileoverview Generated externs. DO NOT EDIT!
* @externs
*/
/**
* An extension of the [NSURLConnectionDelegate](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDelegate) protocol to allow users to participate in authentication and resource management for this HTTPClient.
* @typedef {{
* }}
*/