Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

GH-8: Add Connectivity API #6

Merged
merged 28 commits into from
Mar 26, 2018
Merged

GH-8: Add Connectivity API #6

merged 28 commits into from
Mar 26, 2018

Conversation

jamesmontemagno
Copy link
Collaborator

@jamesmontemagno jamesmontemagno commented Feb 23, 2018

Checklist

  • API implementation
  • Tests
  • Samples
  • Documentation

@jamesmontemagno jamesmontemagno added the DO-NOT-MERGE Don't merge it.... don't do it! label Feb 23, 2018
@Redth
Copy link
Member

Redth commented Feb 24, 2018

Related to #8

@jamesmontemagno jamesmontemagno changed the title [WIP] Add base connectivity [WIP] Add base connectivity: fixes #8 Feb 24, 2018
@mattleibow mattleibow modified the milestones: V2, Preview-1 Feb 28, 2018
@jamesmontemagno jamesmontemagno changed the title [WIP] Add base connectivity: fixes #8 [WIP] Add base connectivity: #8 Mar 1, 2018
@jamesmontemagno jamesmontemagno changed the title [WIP] Add base connectivity: #8 GH-8: Add base connectivity Mar 12, 2018
@jamesmontemagno jamesmontemagno changed the title GH-8: Add base connectivity GH-8: Add Connectivity API Mar 15, 2018
@jamesmontemagno jamesmontemagno added awaiting-review This PR needs to have a set of eyes on it and removed DO-NOT-MERGE Don't merge it.... don't do it! labels Mar 15, 2018
@jamesmontemagno
Copy link
Collaborator Author

build

var currentAccess = NetworkAccess.None;
var manager = Platform.ConnectivityManager;

if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the new platform.hasapi here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

{
ValidatePermission();
var manager = Platform.ConnectivityManager;
if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Platform.HasApiLevel

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

{
get
{
ValidatePermission();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we ok with potentially throwing here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that we are only because it is a manifest check :)

@Redth Redth merged commit b6cffff into master Mar 26, 2018
@Redth Redth deleted the connectivity branch March 26, 2018 18:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting-review This PR needs to have a set of eyes on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants