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
public interface IBehaviorObservable<T> : IObservable<T> | |
{ | |
T Value { get; } | |
bool TryGetValue(out T value); | |
} | |
/// <summary> | |
/// Exposes a BehaviorSubject's Value property while hiding the OnNext, OnError, OnComplete methods. | |
/// </summary> | |
/// <typeparam name="T">To be added.</typeparam> |
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
public interface IPhotoService | |
{ | |
public Task<Stream> TakePhotoAsync(MediaPickerOptions options = null); | |
} |
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.Collections.Generic; | |
using AVFoundation; | |
namespace Chapters | |
{ | |
// ReSharper disable once InconsistentNaming | |
public static class AVAssetExtensions | |
{ | |
public static IList<Chapter> GetChapters(this AVAsset asset) | |
{ |
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.Threading.Tasks; | |
using MvvmCross.ViewModels; | |
using ReactiveUI; | |
namespace ReactiveUI.Mvx | |
{ | |
public abstract class ReactiveMvxViewModel : ReactiveObject, IMvxViewModel | |
{ | |
public virtual void ViewCreated() |
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
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.backgroundColor = [UIColor whiteColor]; | |
[self.window makeKeyAndVisible]; | |
UITabBarController* tabController = [[UITabBarController alloc] init]; |