This file contains 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
//Create a stream for the file | |
Stream remoteStream = null; | |
Stream stream = null; | |
int bytesToRead = 10000; // This controls how many bytes to read at a time and send to the client | |
byte[] buffer = new Byte[bytesToRead]; // Buffer to read bytes in chunk size specified above | |
// The number of bytes read | |
try | |
{ | |
//Create a WebRequest to get the file |
This file contains 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
import UIKit | |
import PlaygroundSupport | |
import SnapKit | |
var horzPadding = 20 | |
var vertPadding = 20 | |
class ActionTarget { | |
let closure: () -> () |
This file contains 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
app.Query() // shows all details on tree that are visible (use All flag for all) | |
app.DismissKeyboard(); | |
app.Back(); | |
app.Flash(query) // flash/flicker the element so you can see it and make sure it’s the right one | |
app.WaitFor(); // wait for some amount of time | |
app.WaitForElement(); // wait for an element to be available | |
app.WaitForNoElement(); // wait for an element to not be available | |
app.Tap(c=>c.Marked(“Add Task”)); // tap something marked as Add Task |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Reflection; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
using UIKit; | |
using MyAppName.iOS.Renderers; |